12.07.2015 Views

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}{PORTD = 0x0F;__delay_ms(200);PORTD = 0xF0;__delay_ms(200);}<strong>Proton</strong> robot developer’s notes:8 led’s – all connected to one port of a uC make invisible values and registers visible andcan indicate what steps of the program were executed. This is an ideal way of testing anddebugging programs5V 6V 6VI2C SLAVESERVO8 LEDSPIC / AVR / ...PIEZOThe proton has 8 normal LED’s on the motherboard on the left side, next to the add-on uC PCB. All 8led’s are connected to an 8 bit port of the uC. Witch port depends on witch microcontroller youchoo<strong>se</strong> to u<strong>se</strong>.We have put the<strong>se</strong> 8 led’s on the design to give starters a basic output indication to test their firstprograms.The<strong>se</strong> led’s are also very u<strong>se</strong>ful for debugging purpo<strong>se</strong>s. In your program, copy the register or valueto the led’s and they will visualize the value of this register.Bart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!