Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

pic 16f628 and 16f84 compatible

Status
Not open for further replies.

pgsabel

Newbie level 6
Joined
Jun 4, 2003
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
104
16f628 compatible

According to the datasheets, the 16f628 and 16f84 are compatible. Does this mean that code written for a 16f84 will work on a 16f628 if programmed in? i have a 16f628a, i guess this is the same chip. can a led be directly connected to the output of the 16f628a without a current limiting resitor?
 

16f628a compatibilidad con 16f84a

I think the F628 has more peripherals than the F84 do. So code written for the F84 will work on an F628. But code written for the F628 may not work on an F84. Consult the datasheets for specific differences.

Good luck
 

The parts are pin compatible, but since the 16F628 has more peripherals, the code written for 16F84 will not be able to access them.
The memory map is different, too. That means that code written for F628 may not work correctly on F84.
The safest way is to copy the .asm file, change the processor type and reassemble the code. That way, in case there are problems, you get errors/ warnings, which help you fix the subtle differences (but which can prevent proper operation).
 

In general I found 84 code will work on the 628. One thing you need to disable the comparators on the 628 which is enabled by default.

movlw b'00000111' ; disable comparators
movwf CMCON
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top