We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest! Update Here
Stay in the loop with the latest from Microchip! Update your profile while you are at it. Update Here
Complete your profile to access more resources.Update Here!

AN641

Title
Title
Code development for the PIC16C52
Name
Name
AN641
Date
Date
06/24/2015
Description
Description
To develop code on a PIC16C52 device, a PIC16C54/JW part can be used. In order to use a PIC16C54/JW device, the following conditions should be followed: 1. A PIC16C54/JW has 512 words (0x1FF) of program memory, whereas a PIC16C52 has 384 bytes (0x17F) of program memory. The ?extra? locations should be programmed as follows: a) Location 0x180 should be programmed with a ?GOTO 0x00? instruction b) Locations 0x181 through 0x1FF should be programmed with a ?GOTO 0x17F? instruction. See Figure 1 for details, and for a standard ?skeleton? program, use the code in Example 1. 2. The PIC16C54/JW has a Watchdog Timer (WDT), while the PIC16C52 does not. Therefore, the WDT on the PIC16C54/JW must be disabled. The ?__CONFIG? command used in Example 1 disables the WDT. 3. The PIC16C54/JW has four oscillator modes, while the PIC16C52 has two. Therefore, only RC and XT oscillator modes should be used. The ?__CONFIG? command used in Example 1 takes care of programming the XT Oscillator mode, if required.