668-0011 Rabbit Semiconductor, 668-0011 Datasheet - Page 191

no-image

668-0011

Manufacturer Part Number
668-0011
Description
IC MPU RABIT3000A 55.5MHZ128LQFP
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 668-0011

Rohs Status
RoHS non-compliant
Processor Type
Rabbit 3000 8-Bit
Speed
55.5MHz
Voltage
2.5V, 2.7V, 3V, 3.3V
Mounting Type
Surface Mount
Package / Case
128-LQFP
Features
-
Other names
316-1043

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
668-0011
Manufacturer:
Rabbit Semiconductor
Quantity:
10 000
21.3 Operation
The following steps explain how to set up a Quadrature Decoder channel.
1. Configure Timer A10 via TAT10R to provide the desired Quadrature Decoder clock
2. Configure QDCR to select the input pins for the two channels.
3. Reset the counters by writing to QDCSR.
21.3.1 Handling Interrupts
The following steps explain how an interrupt is set up and used.
1. Write the vector to the interrupt service routine to the internal interrupt table.
2. Configure QDCR to select the interrupt priority (note that interrupts will be enabled
The following actions occur within the interrupt service routine.
• Since a Quadrature Decoder interrupt occurs when the counter rolls over, determine
• The current counter value can be read from QDCxR (and QDCxHR if the 10-bit coun-
21.3.2 Example ISR
A sample interrupt handler is shown below.
Chapter 21 Quadrature Decoder
speed.
once this value is set).
exactly why the interrupt occurred by reading the status bits in QDCSR and adjust any
software counters accordingly. This will also clear the interrupt request.
ter is enabled).
qd_isr::
push af
ioi ld a, (QDCSR)
; perform any necessary software counter adjustments here
; read current counter value(s)
pop af
ipres
ret
; save used registers
; clear the interrupt request and get status
; restore used registers
181

Related parts for 668-0011