except for the comparator , read the data sheet porta section
except for the comparator , read the data sheet porta section
Warning I'm not a teacher
hello I am not a super specialist, but I have used this 16F628 in a DTMF decode function
here is the beginning (I use CMCON to have digital input)
'************************************************* ***************
'* Name : prefetch V6.bas *
'* Author : F1CHF *
'* Date : 1/06/2007 *
'* LED ENB ON sur codes ordinaires *
'* mais pas sur ABCD et code Zero *
'************************************************* ***************
@ device pic16f628, pwrt_on, protect_off
define osc 3 'car le quartz fait 3.58 Mhz
CMCON = 7 'modif pour PIC 16F628
'définition des entrées
STB var PORTA.4 '1 si réception d'un code DTMF valide(STROBE du 8870)
E1 var PORTA.0 'Q1 du 8870
E2 var PORTA.1 'Q2 du 8870
E3 var PORTA.2 'Q3 du 8870
E4 var PORTA.3 'Q4 du 8870
' definition des sorties
DTMFA var PORTB.2
DTMFB var PORTB.4
DTMFC var PORTB.3
DTMFD var PORTB.5
hope this help you
Francois
CMCON = 7 is it,
then it’s immediately compatible with any 16F84 source.
Bookmarks