Zedman
Full Member level 6
p18f6722.h
I went into the forest deeply with this chip.
I would like use this chip with an SPI eeprom and a RTC chip and a max232 to attach it to the COM port.
I made the PCB, measured all the GND / Vcc traces made the vias by hand and after that I've put on the 18LF6722 along with a 100nF and a 22uF and a 1k between MCLR and Vcc. I've also put on the 10MHz crystal and 2 18pF caps for the crystal.
I made a simple prog disabled all the peripherals, and set the config according to the osc and disabled everything else. It flashes a LED attached to RE2 with a 330 ohm resistor.
It's running on 3V (2 AA batteries).
The problem: it won't start.
It's a brand new chip.
I tought the caps might not be the correct ones for this crystal, so I've tried 5.6pF 2x5.6pF, 18pF, 22pF, and even 33pF.
After changing the caps few times it's started, but after a few flashes the led turned off.
It's a new PCB I made it because the previous one had the same problem with a 18F6520.
It might be a lame config issue, or a huge bug i cannot see but please show me the right way.
thanks
I went into the forest deeply with this chip.
I would like use this chip with an SPI eeprom and a RTC chip and a max232 to attach it to the COM port.
I made the PCB, measured all the GND / Vcc traces made the vias by hand and after that I've put on the 18LF6722 along with a 100nF and a 22uF and a 1k between MCLR and Vcc. I've also put on the 10MHz crystal and 2 18pF caps for the crystal.
I made a simple prog disabled all the peripherals, and set the config according to the osc and disabled everything else. It flashes a LED attached to RE2 with a 330 ohm resistor.
It's running on 3V (2 AA batteries).
The problem: it won't start.
It's a brand new chip.
I tought the caps might not be the correct ones for this crystal, so I've tried 5.6pF 2x5.6pF, 18pF, 22pF, and even 33pF.
After changing the caps few times it's started, but after a few flashes the led turned off.
It's a new PCB I made it because the previous one had the same problem with a 18F6520.
It might be a lame config issue, or a huge bug i cannot see but please show me the right way.
thanks