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

DEEP AND ACCESSIBLE STACK

The PIC18Cxxx family has a 32-level hardware stack. Not only that, but the stack can be directly manipulated with new PUSH and POP instructions in the instruction set. In addition, the stack pointer is directly accessible as the STKPTR special function register. The stack is mainly a program counter storage device for storing return addresses. However, it is possible to read from and write to the top value on the stack via special function registers.

This use is fairly limited and would be difficult at best to implement a generic stack in the sense of storing and reading arrays of data and the like. A much better generic stack can be implemented using the indirect addressing registers.

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