101-1017 Rabbit Semiconductor, 101-1017 Datasheet - Page 85

no-image

101-1017

Manufacturer Part Number
101-1017
Description
KIT DEV POWERCORE 3800 INT'L
Manufacturer
Rabbit Semiconductor
Series
PowerCore FLEXr
Type
MPU Moduler
Datasheet

Specifications of 101-1017

Contents
RabbitCore Module, Dev. Board, AC Adapter, Cable and Dynamic C® CD-Rom
Processor To Be Evaluated
PowerCore 38xx
Interface Type
Ethernet
For Use With/related Products
RCM3800
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Phase-Angle Triac Control
DESCRIPTION
User’s Manual
void triac_PhaseInit(int ext_interrupt, int interrupt_pin);
Initializes the triac phase-angle control interrupt. Phase-angle triac control provides
you with the ability to fire a triac at a given phase angle of a positive and negative 50/
60 Hz A/C sine wave, thus providing you with the control required by your application.
A run-time error will occur if the triac_PhaseInit function has not executed.
To initialize the triac driver completely, you must also run the triac_PhaseCntr-
lPin function for each triac to be used in your application. You will need to initialize
the port pin(s) you select for triac control before calling any of the triac API functions
when using the triac_PhaseCntrlPin function. For multiple triacs, the control
pins must be on the same port—this limits the number of triacs to 8, the maximum num-
ber of pins on a port. You will also need to write a custom I/O driver for the control pins.
(See the triac_gate_on and triac_gate_off routines in the TRIAC_PHASE.
c sample program for an example.) The triac driver will calibrate automatically to the
incoming 50/60 Hz A/C waveform being used. Note that high-frequency calibration oc-
curs 100% of the time, whereas low-frequency calibration occurs every n’th time spec-
ified by the TRIAC_LOW_FREQ_CAL macro.
Add the following lines in your application to set up the driver properly.
Note that the interrupt priority level is preset to level 3.
// Define phase-angle triac control method for proper
// library compilation.
#define PHASECONTROL
// Set the max number of triacs (max. is 8) for your application.
#define MAX_TRIACS <number of triacs>
// Define the triac control function names.
#define TRIAC_GATE_ON triac_gate_on
#define TRIAC_GATE_OFF triac_gate_off
// #use the triac lib
#use "triac.lib"
triac_PhaseInit
77

Related parts for 101-1017