668-0010 Rabbit Semiconductor, 668-0010 Datasheet - Page 182

no-image

668-0010

Manufacturer Part Number
668-0010
Description
IC MPU RABIT3000 55.5MHZ 128LQFP
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 668-0010

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-1016
20.3 Operation
20.3.1 Input-Capture Channel
The following steps explain how to set up an Input Capture channel.
1. Configure Timer A8 via TAT8R to provide the desired Input Capture clock.
2. Configure ICTxR to provide the desired start/stop operation and conditions.
3. Configure ICSxR to select the input pins for the start and stop conditions.
4. Reset the counter by writing to ICCSR.
20.3.2 Handling Interrupts
The following steps explain how an interrupt is used.
1. Write the vector to the interrupt service routine to the internal interrupt table
2. Configure the Input Capture Control/Status Register (ICCSR) to select events that will
3. Configure the Input Capture Control Register (ICCR) to select the interrupt priority
The following actions occur within the interrupt service routine.
• If needed, the current counter value can be read from ICLxR and LCMxR (reading
• If the counter is expected to roll over, determine if that is why the interrupt occurred by
• The interrupt request should be cleared by reading from ICCSR
20.3.3 Example ISR
A sample interrupt handler is shown below.
172
generate an interrupt.
(note that interrupts will be enabled once this value is set; this step should be done last).
from ICLxR latches the value of ICLxR, so ICLxR should always be read first)
reading the status bits in ICCSR and adjusting any software counters accordingly
ic_isr::
push af
ioi ld a, (ICCSR)
; determine which interrupts have occurred
; if rollover, perform any necessary software counter adjustments here
; read counter values
pop af
ipres
ret
; clear the interrupt request and get status
Rabbit 3000 Microprocessor User’s Manual

Related parts for 668-0010