101-1006 Rabbit Semiconductor, 101-1006 Datasheet - Page 92

no-image

101-1006

Manufacturer Part Number
101-1006
Description
MODULE POWERCORE FLEX 3800
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-1006

Module/board Type
MPU Core Module
For Use With/related Products
RCM3800
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Time-Proportional Triac Control
DESCRIPTION
84
void triac_TimePropInit(int ext_interrupt, int interrupt_pin);
Initializes the triac time-proportional control interrupt. Time-proportional triac control
provides control of a triac for a fixed period of time, with the application setting the ON
and OFF times within this fixed time period to provide the desired ratio of ON/OFF
times.
To initialize the triac driver completely, you must also run the triac_TimePropCn-
trlPin function for each triac to be used in your application. You will need to initial-
ize the port pin(s) you select for triac control before calling any of the triac API
functions when using the triac_TimePropCntrlPin function. For multiple tri-
acs, the control pins can be on any combination of ports. 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_RATIO.c sample program for an example.)
Add the following lines in your application to set up the driver properly.
Note that the interrupt priority level is preset to level 1.
// Define time-proportional triac control method for
// proper library compilation.
#define TIMEPROPORTIONAL
// Set the max number of triacs for control
#define MAX_TRIACS <number of triacs>
// Define the triac custom function ON/OFF function
// names for proper library compilation. (see sample
program triac_ratio.c for an example)
#define TRIAC_GATE_ON triac_gate_on
#define TRIAC_GATE_OFF triac_gate_off
// Use the common ISR library for the triac and the
// ADC ramp circuit.
#use "adctriac_isr.lib"
// Use the triac library
#use "triac.lib"
triac_TimePropInit
PowerCore FLEX

Related parts for 101-1006