| Electronic Components Datasheet Search |
|
PICDEM2 Datasheet(PDF) 15 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PICDEM2 Datasheet(HTML) 15 Page - Microchip Technology |
|
15 / 60 page ![]() PICDEM 2 User’s Guide DS30374D-page 10 2001 Microchip Technology Inc. 3.1 Main Routine The tutorial program is extremely simple. It begins by configuring PORTB as all outputs to drive the 8 LEDs and initializing a counter. Then it waits in an infinite loop until S2 is pressed. This increases the counter by one, and this number is displayed in binary on the LEDs. Once the count reaches FFh, the next S2 press will roll the count back to 00h. Figure 3.2: Main Routine Start Configure PORT B Switch S2 pressed? No Yes Increase Counter Display count on LEDs Zero Counter Switch S2 released? No Yes |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |