|
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.
PREVIOUS
NEXT
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. |