PDA

View Full Version : frequency meter from 16f84a to 16f88



savnik
- 4th November 2006, 12:19
I have a code for pic16f84a (frequency meter) that work with the hardware below and i want to change for 16f88.
But that not work.



'*************************** HARDWARE ***********************************
' _____________
' -| RA2 \/ RA1 |- LCD 04 RS
' controle mesure -| RA3 RA0 |- LCD 06 E
' entree mesure -| RA4 OSC1 |- 4 Mhz
' + 5 Volts -| MCLR OSC2 |- 4 MHz
' MASSE -| GND VCC |- + 5 Volts
' -| RB0 RB7 |- LCD 14 DATA
' PLUS BOUTON -| RB1 RB6 |- LCD 13 DATA
' MOINS BOUTON -| RB2 RB5 |- LCD 12 DATA
' MENU BOUTON -| RB3 RB4 |- LCD 11 DATA

'I have this but not work

CMCON = 7 'PortA = digital I/O
ANSEL = %00000100 'Will set RA2 as analog and all others as digital
ADCON0 = %11100001 'Configure and turn on A/D Module
ADCON1 = %00000010 'Set PORTA analog and RIGHT justify result

sayzer
- 4th November 2006, 12:26
Hi Savnik,

Post the rest of the code.


-----------------------------

savnik
- 4th November 2006, 13:28
Hi Savnik,

Post the rest of the code.


-----------------------------
i solve the problem
that is with LCD