Changeset 0262b6e in avrstuff
- Timestamp:
- Sep 4, 2012, 6:44:04 PM (12 years ago)
- Branches:
- main
- Children:
- 87456c1
- Parents:
- 41d46ae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
V-USB_Dev/firmwares/herePic/main.c
r41d46ae r0262b6e 45 45 46 46 int main() { 47 // Enter Low Voltage ICSP mode on the PIC 48 PORTB &= ~(VPP|PGM|PGD|PGC); // Start with all pins low 49 DDRB |= VPP|PGM|PGD|PGC; // set them as outputs 50 _delay_us(5); // Wait for some time 51 PORTB |= PGM | VPP; // Enter low voltage programming mode 52 47 53 // Init 48 54 wdt_enable(WDTO_2S); … … 51 57 usbInit(); 52 58 sei(); 53 54 // Enter Low Voltage ICSP mode on the PIC55 PORTB &= ~(VPP|PGM|PGD|PGC); // Start with all pin low56 DDRB |= VPP|PGM|PGD|PGC; // set them as outputs57 _delay_us(4); // Wait for some time58 PORTB |= PGM; // Enable low voltage programming59 PORTB |= VPP; // Enter programming mode60 59 61 60 // Configure leds
Note:
See TracChangeset
for help on using the changeset viewer.