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!

AN526

Title
Title
PIC16C5x/PIC16Cxx Utility Math Routines
Name
Name
AN526
Date
Date
06/24/2015
Application Categories
Application Categories
Home Appliance / Basic Control
Product Categories
Product Categories
8-bit MCU
Description
Description
This application note provides some utility math routines for Microchip’s PIC16C5X and PIC16CXXX series of 8-bit microcontrollers. The following math outlines are provided: • 8x8 unsigned multiply • 16x16 double precision multiply • Fixed Point Division (Table 3) • 16x16 double precision addition • 16x16 double precision subtraction • BCD (Binary Coded Decimal) to binary conversion routines • Binary to BCD conversion routines • BCD addition • BCD subtraction • Square root These are written in native assembly language and the listing files are provided. They are also available on a disk (MS-DOS ). All the routines provided can be called as subroutines. Most of the routines have two different versions: one optimized for speed and the other optimized for code size. The calling sequence of each routine is explained at the beginning of each listing file.

Files

Title Title Download Date Size
AN526 Source Code - PIC16C5x/PIC16Cxx Utility Math Routines 97.9 KB 06/24/2015 AN526 Source Code - PIC16C5x/PIC16Cxx Utility Math Routines Download 06/24/2015 97.9 KB

Development Tools

Title Part Number Title
DM163003
PICDEM 3
DM163003 DM163003 PICDEM 3
DM143001
PICDEM 14A
DM143001 DM143001 PICDEM 14A