101-1268 Rabbit Semiconductor, 101-1268 Datasheet - Page 41
![KIT FOR BL4S100 STARTER PACKAGE](/photos/14/9/140942/101-1268_sml.jpg)
101-1268
Manufacturer Part Number
101-1268
Description
KIT FOR BL4S100 STARTER PACKAGE
Manufacturer
Rabbit Semiconductor
Type
Single Board Computers (SBC)r
Datasheet
1.20-101-1258.pdf
(144 pages)
Specifications of 101-1268
Product
Modules
Processor Type
BL4S100
Sram
512 KB
Timers
8 bit, 10 bit
Number Of I/os
20
Backup Battery
3 V Lithium Coin Type
Operating Voltage
9 V to 36 V
Power Consumption
2 W
Board Size
96 mm x 146 mm x 16 mm
Description/function
Computer Module
For Use With/related Products
BL4S100
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
316-1157
•
•
•
BL4S100 User’s Manual
INTERRUPTS.C
Set up the Demonstration Board as shown in Figure 14 with IN0 connected to SW1.
The sample program sets up two interrupt sources, an external interrupt tied to pushbutton
switch SW1, and a rollover interrupt tied to a timer that is producing a PWM output.
The Dynamic C
the PWM signal was started. The window will also display Button Pressed each time
the pushbutton switch is pressed. Each time the button is pressed, the timeout timer that
removes the message is reset, so you can keep the message on the screen indefinitely by
pressing the button repeatedly.
PPM.C
on headers J3 and J4. The PPM signals are set for a frequency of 200 Hz, with the duty
cycle adjustable from 0 to 100% and an offset adjustable from 0 to 100% by the user.
These pins can be connected to an oscilloscope to view the waveform being generated.
The overall frequency can be adjusted in the
instructions when running this sample program.
Once you compile and run the sample program, change the duty cycle and offsets for a
given PPM channel via the Dynamic C
forms on the oscilloscope. Signals on OUT0 and OUT1 will all be synchronized with
each other as they share the same overall counter block that sets the cycle frequency.
The same is true for PPM signals on OUT2 and OUT3 (and the remaining digital outputs
when you connect them to J1 on the Demonstration Board instead of those already
connected). The two blocks may have a phase shift from each other, but will run at the
same frequency.
PULSE_CAPTURE.C
channels on the digital I/O pins on header J3. The input capture feature allows the begin
and end positions of a pulse to be measured in a given time window. We take advantage
of the counter synchronization feature of the underlying Rabbit RIO chip to create cap-
ture windows and pulse modulation windows that are synchronized. This guarantees
that we always catch the begin edge first on a quickly repeating waveform. This was
done to create an interactive element to this sample program, but capturing real-world
repetitive signals will usually not have this advantage. Refer to Appendix D for more
information on how to use the input capture.feature. Follow the instructions below
when running this sample program.
1. The digital outputs on the BL4S100 do not have an internal pull-up resistor and will not register on
2. Connect the oscilloscope probe to digital output pins OUT0–OUT3 on headers J3 or J4. Remember
1. Connect I/O pins IN0 and OUT0 together.
2. Connect I/O pins IN3 and OUT2 together.
3. Connect the oscilloscope ground to GND on header J3.
4. Use the oscilloscope probes on the IN0 and the OUT0 pair or the
the oscilloscope without a pull-up resistor. The Demonstration Board has pull-up resistors—
connect OUT0–OUT3 on the BL4S100 to SW1–SW4 on header J1 of the Demonstration Board.
to connect the oscilloscope ground to GND on header J4.
IN3 and OUT2 pair to view the PPM signals.
—Demonstrates the use of up to eight PPM channels on the digital output pins
STDIO
—Demonstrates the use of the Rabbit RIO interrupt service capabilities.
—Demonstrates the use of two input capture inputs tied to PPM
window will show a count of rollovers that have occurred since
STDIO
#define PPM_FREQ
window and watch the change in wave-
line. Follow these
39