ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites

THROUGH THE LOOKING GLASS


Circuit Cellar Online
THE MAGAZINE FOR COMPUTER APPLICATIONS
Circuit Cellar Online offers articles illustrating creative solutions
and unique applications through complete projects, practical
tutorials, and useful design techniques.

THROUGH THE LOOKING GLASS

Lessons from the Trenches Taking a Look at the PIC18Cxxx Series
by David Brobst

Start ý PIC18Cxxx Chips ý Memory ý Data Memory ý Advanced Indirect Addressing ý Deep and Accessible Stack ý Interrupts ý Power-On Features ý Clock Speed ý 10-Bit A/D ý Hardware Multiplier ý Timers ý CCP/PWM ý USART ý I2C Master ý Table Read/Write ý Current Status ý Sources and PDF

TIMERS

The PIC18Cxxx has added four timers. Each of these timers can be configured as 16-bit timers with numerous post-scaler and pre-scaler options.

One of the long-standing issues with the low- and mid-range PIC devices is the sharing of a pre-/post-scaler between TMR0 and the watchdog timer. By assigning the scaler to one peripheral, the other peripheral is left high and dry and finds itself bereft of a scaler of any type. This means that, if the scaler is assigned to the watchdog timer, TMR0 will find itself flying along at a 1:1 ratio with the instruction clock. This often makes the two peripherals mutually exclusive at worst, or a hodgepodge of scaler switching at best. The PIC18Cxxx rectifies this long-standing problem by giving the WDT its own post-scaler.

Now for the bad news. Unfortunately, the WDT post-scaler is found in the configuration fuses and can only be set once during programming. After set, it cannot be reliably changed for all instances. However, even with the post-scaler in the configuration fuses, the WDT/TMR0 combination in the PIC18Cxxx is a vast improvement over the kludge that proceeded it in the low- and mid-range devices.

PREVIOUSNEXT


Circuit Cellar provides up-to-date information for engineers. Visit www.circuitcellar.com for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com or subscribe online. ýCircuit Cellar, the Magazine for Computer Applications. Posted with permission.
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ