PDA

View Full Version : Configuring 16F616



Tobias
- 16th February 2009, 15:56
First time using a 16F616 and learning there is some different terminology compared to the 16F876A I am used to working with. Can someone confirm this is all correct for listed input and outputs?
Thanks

TRISA=%001000
TRISC=%001111
INTCON.7 = 0
Ansel = 0

A0=No Connection
A1=Output to LED
A2=Output to LED
A3=Pulsin from outside source
A4/A5= HS OSC

C0-3=BCD....learned about PortA weak pull-ups after building board
C4-5=Outputs to control digital pot.

I have 10k resisitors pulling up C0-3. However C2 is pulled low, either config is still wrong or the board is bad.

mister_e
- 16th February 2009, 16:28
In theory it should work, in practice I may have missed something in the datasheet. Comparator are disabled at POR, PWM is disabled and you have disabled the ADC.. what else?