So, my first day of PIC programming.
I've found it is very much write and pray for the small footprint chips, no real-time debugging like I'm used to on a PC (at least not on the small PICs without more ICD hardware).
Anyway, PIC asm can get stuffed, I don't have time to learn a whole new set of opcodes so I installed the HI-TECH C Compiler, MPLAB IDE etc...
I have a "Pickit2 Low Pin Count Demo" board and a Pickit2 ISCP USB programmer.
Project: Use a PIC16F690 to gather temperatures from multiple DS18B20 digital thermometers and output to RS232 to be logged by a server.
So my idea was to output to RS232 and log temps, but before I went throwing MAX232s around I wanted to make sure the FIRST part was working (temp I/O) so the PICkit2 board has 4 LEDs on it, connected to RC0-RC3. I thought, well I'd just display nibble by nibble with a delay so I could scribble down the temp and verify it's accuracy (and just be sure that part's working before I go adding more 1-wire devices).
BUT. I get nothing, no lights.
The nibble([0-15]) function works fine, the delay_ms() works fine, and I have no idea where to go from here to debug this thing...
Help?
Schematic and code attached, power is drawn from the ICSP (USB 5v).
I've found it is very much write and pray for the small footprint chips, no real-time debugging like I'm used to on a PC (at least not on the small PICs without more ICD hardware).
Anyway, PIC asm can get stuffed, I don't have time to learn a whole new set of opcodes so I installed the HI-TECH C Compiler, MPLAB IDE etc...
I have a "Pickit2 Low Pin Count Demo" board and a Pickit2 ISCP USB programmer.
Project: Use a PIC16F690 to gather temperatures from multiple DS18B20 digital thermometers and output to RS232 to be logged by a server.
So my idea was to output to RS232 and log temps, but before I went throwing MAX232s around I wanted to make sure the FIRST part was working (temp I/O) so the PICkit2 board has 4 LEDs on it, connected to RC0-RC3. I thought, well I'd just display nibble by nibble with a delay so I could scribble down the temp and verify it's accuracy (and just be sure that part's working before I go adding more 1-wire devices).
BUT. I get nothing, no lights.
The nibble([0-15]) function works fine, the delay_ms() works fine, and I have no idea where to go from here to debug this thing...
Help?
Schematic and code attached, power is drawn from the ICSP (USB 5v).
Attachments
-
44.9 KB Views: 219
-
1.8 KB Views: 142