[Menu]>[Guide to use the PIC]>[628 Hardware]>[SFR]

SFR explanation for PIC16F628(1)

INDF ( Indirect addressing memory ) 00h,80h,100h,180h
Same as PIC16F84A, PIC16F873


TMR0 ( Timer0 count register ) 01h,101h
Same as PIC16F84A, PIC16F873


PCL ( Program counter Lower register ) 02h,82h,102h,182h
Same as PIC16F84A, PIC16F873The program memory of PIC16F628 is 2K words.


STATUS ( Status register ) 03h,83h,103h,183h
Same as PIC16F84A, PIC16F873


FSR ( Indirect address register ) 05h,85h,105h,185h
Same as PIC16F84A, PIC16F873


PORTn (Port register)/TRISn (Port mode set register) 05h,06h,106h/85h,86h,186h
In case of PIC16F84A, it has five RA ports. In case of PIC16F628, it has eight RA ports. However, RA5 is only for input mode and it can't use as an output port. Some functions are multiplexed in each port, so some time the ports can't be use as I/O port.
RA4 port is Open Drain type same as PIC16F84A and PIC16F873 so it will become only ground or open state. If you use it as output port, the power supply from the outside is required.

The usage of PORT register and TRIS register is same as PIC16F84A, PIC16F873


PCLATH ( Program counter Upper register ) 0Ah,8Ah,10Ah,18Ah
Same as PIC16F84A, PIC16F873The program memory of PIC16F628 is 2K words.


INTCON ( Interruption Control register ) 0Bh,8Bh,10Bh,18Bh
Same as PIC16F84A, PIC16F873


OPTION_REG ( Option register ) 81h,181h
Same as PIC16F84A, PIC16F873


TMR1L, TMR1H ( Timer 1 Count register ) 0Eh, 0Fh
Same as PIC16F873


T1CON ( Timer1 control register ) 10h
Same as PIC16F873


TMR2 ( Timer 2 Count register ) 11h
Same as PIC16F873


T2CON ( Timer 2 Control Register ) 12h
Same as PIC16F873


CCPR1L,CCPR1H ( CCP1 register ) 15h, 16h
Same as PIC16F873


CCP1CON ( CCP1 Control Register ) 17h
Same as PIC16F873


PR2 ( PWM period register ) 92h
Same as PIC16F873


RCSTA ( Receive Status and Control Register ) 18h
Same as PIC16F873


TXSTA ( Transmit Status and Control Register ) 98h
Same as PIC16F873


SPBRG ( Speed Baud Rate Generator Register ) 99h
Same as PIC16F873