Truncated match.
PICList
Thread
'Changing from 16C84 to 17C42'
1997\02\16@133039
by
slm5g
|
My first program was written for the PIC 16C84 and now I would like to
transfer it to the PIC 17C42. What would I need to change?
Of course I've listed the processor and included the correct include
file but in initializing the 17C42 I'm not sure what I'll need to do,
anyhelp would be greatly appreciated.
I initialized the 16C84 like this: (got this from a Microchip PIC
workshop)
InitPrt
; Initialization of ports to make A-input, b-output
bsf STATUS, RP0 ;select bank1
movlw 0x1f ;value used to initialize data direction
movwf TRISA ;set RA0-4 as inputs, TRISA6-7 are always
bcf STATUS, RP0 ;select bank0
clrf PORTB ;initialize PORTB by setting output data
bsf STATUS,RP0 ;select bank1
movlw 0x00 ;value sed to initialize data direction
movwf TRISB ;set RB0-7 as outputs
bcf STATUS,RP0 ;select bank0
return
How do I initialize the 17C42?
I've also seen some app notes use the 17C42 and use a string like:
LIST P=17C42, C=120, T=ON, L=0, R=DEC I know what what the P= is but
what or where can I find the meaning to C=120, T=ON, L=0, R=DEC?
Thanks for your time in helping me figure this out.
Ken Dougal
spam_OUTslm5gTakeThisOuT
cc.usu.edu
1997\02\16@140533
by
slm5g
|
Hello everyone,
My first program was written for the PIC 16C84 and now I would like to
transfer it to the PIC 17C42. What would I need to change?
Of course I've listed the processor and included the correct include
file but in initializing the 17C42 I'm not sure what I'll need to do,
anyhelp would be greatly appreciated.
I initialized the 16C84 like this: (got this from a Microchip PIC
workshop)
InitPrt
; Initialization of ports to make A-input, b-output
bsf STATUS, RP0 ;select bank1
movlw 0x1f ;value used to initialize data direction
movwf TRISA ;set RA0-4 as inputs, TRISA6-7 are
always
bcf STATUS, RP0 ;select bank0
clrf PORTB ;initialize PORTB by setting output data
bsf STATUS,RP0 ;select bank1
movlw 0x00 ;value sed to initialize data direction
movwf TRISB ;set RB0-7 as outputs
bcf STATUS,RP0 ;select bank0
return
How do I initialize the 17C42?
I've also seen some app notes use the 17C42 and use a string like:
LIST P=17C42, C=120, T=ON, L=0, R=DEC I know what what the P= is but
what or where can I find the meaning to C=120, T=ON, L=0, R=DEC?
Thanks for your time in helping me figure this out.
Ken Dougal
.....slm5gKILLspam
@spam@cc.usu.edu
More... (looser matching)
- Last day of these posts
- In 1997
, 1998 only
- Today
- New search...