Steroid Micros  Intec Automation Inc.
home | contact faq | documentation | applications | links | news | about Intec

SS555 Runtime Libraries


View Larger Image

$89 USD

 


Library of Hardware Specific Functions

These well documented library functions, specific to the SS555 microcontroller greatly simplifies the development process, being fully compatible with the GNU C/C++ compiler. A large number of annotated tutorial programs further assist in reducing the development cycle.


Features

Functions

COL - Change of [PLL] Lock  
COL_priority_set( priority, function ) Set the level to interrupt
COL_isr_set( COL, Error ) Setup the COL interrupt vector table
COL_isr( void ) Execute correct COL isr
COL_interrupt_enable( enable ) Enable/disable the COL interrupt
   
DEC - Decrementer  
TMBCLK_set(Clock Source, Enable) Sets combined TB/DEC properties
DEC_set(  time ) Sets the current value of the DEC in us
DEC_get( ) Returns the current value of the DEC
DEC_isr_set( handler ) Setup the DEC interrupt vector table
   
Flash Programming   
Flash_enable( enable )  Enables/disables flash programming on the SS555
   
IRQ - Interrupt Controller Module   
IRQ_init( function1, function2 ) Sets IRQ pins for either GPIO or IRQ
defaultISR_1( void ) Do nothing and return from interrupt
defaultISR_2( void ) Turn off level and return from interrupt
external_interrupt_init( handler ) Set default handler for all LVL 7:0 interrupts
external_interrupt_enable( enable ) Enable the interrupt controller on the MPC555
IMB3_init( handler ) Set default handler for LVL 31:8 interrupts
LVL_is_empty( priority, default_function ) Check availability of an interrupt level
IRQ_isr_enable( priority, enable ) Enables/Disables a single IRQ level
IRQ_isr_set( priority, handler ) Sets a handler for a given IRQ level
IRQ_port_direction_set( direction ) Set the direction of all the pins in the IRQ port
IRQ_pin_direction_set( which_pin, direction) Set the direction of a single IRQ pin as either In or Out
IRQ_port_direction_get( void ) Get the current direction of the IRQ port
IRQ_pin_direction_get( which_pin ) Get the current direction of a single IRQ pin
IRQ_port_set( data ) Sets/clears all output pins in the IRQ port
IRQ_pin_set ( which_pin , pin_data) Sets/clears which_pin in the IRQ port
IRQ_port_get( void ) Get states of all pins in the IRQ port
IRQ_pin_get( which_pin ) Gets state of a single IRQ pin
   
MIOS - Modular Input/Output Subsystem  DA - Double Action Functions
DA_init( DApin, mode , counter , polarity ) Initialize a single Double Action pin
DA_write( DApin , data_reg , data ) Write to a register from one DA pin 
DA_read( DApin, data_reg  ) Read a register from one DA pin
  MIOS Interrupt Functions
MIOS_init( which_MIOS, function ) Set the spurious MIOS ISR
MIOS_priority_set( which_MIOS, priority, handler ) Set the level to interrupt
MIOS_isr_set( which_MIOS, pin, handler, enable) Setup a single entry in the MIOS interrupt vector table
MIOS0_isr( void ) Execute appropriate MIOS0 handler
  MPIO - MIOS Parallel Input/Output
MPIO_port_direction_set(direction ) Set the direction of all the MPIO port pins
MPIO_pin_direction_set( MPIO_pin, direction ) Set the direction of a single MPIO pin
MPIO_port_direction_get( void ) Get the current direction of the MPIO port
MPIO_pin_direction_get( MPIO_pin ) Get the current direction of a single MPIO pin
MPIO_port_set( data ) Set states of all MPIO port output pins
MPIO_pin_set ( MPIO_pin, state ) Set value of a single MPIO output pin
MPIO_port_get( void ) Get value of all MPIO port pins
MPIO_pin_get( MPIO_pin ) Get value of a single MPIO pin
   
PIT - Periodic Interrup Timer   
PITRTclk_init( clk_src, divide_by ) Sets combined PIT/RTC clock properties
PIT_get(  ) Returns time until next PIT interrupt in us
PIT_tic_time( ) Returns the number of us per PIT tic
PIT_speed_set( speed ) Sets the resolution of the PIT
PIT_period ( tics ) Sets the number of PIT tics before the PIT timesout
PIT_enable (enable) Enables/disables the PIT timer
PIT_priority_set ( priority, handler ) Sets the interrupt level and the PIT interrupt subroutine
PIT_isr_set( handler, error_handler ) Set the PIT interrupt handler in the vector table
PIT_isr( void ) Runs the correct PIT isr and clears the interrupt flag
PIT_interrupt_enable( enable ) Enables/disables the PIT interrupt
   
PWM - Pulse Width Modulation As PWM  
MIOS_init( clock_prescaler ) Sets the clock that is shared by the PWM and DA pins
PWM_init( PWMpin , function ) Sets a PWM pin for either PWM or GPIO operation
PWM_period(PWMpin, clk_prescaler, period) Sets the period of a single PWM  pin
PWM_pulse(PWMpin , pulse ) Sets the high time of a single PWM pin
As Input/Output
PWM_port_direction_set(direction ) Set the direction of all the pins in the PWM port
PWM_pin_direction_set( PWM_pin, direction ) Set the direction of a single PWM pin
PWM_port_direction_get( void ) Get the current direction of all the pins in the PWM port
PWM_pin_direction_get( PWM_pin ) Get the current direction of a single PWM pin
PWM_port_set( data ) Set states of all the output pins in the PWM port
PWM_pin_set( PWM_pin, state ) Set value of a single PWM [output] pin
PWM_port_get( void ) Get the states of all the PWM port pins
PWM_pin_get( PWM_pin ) Get value of a single PWM pin
   
QADC - Queued Analog to Digital Converter   
ADC_init( mode, port, pin ) Setup a single ADC port for either single or multiple scan
adc_get( port, pin ) Get the value of a single read of 1 adc pin
adc_64scan_get( port ) Get the value of a 64 reads of 1 adc pin
adc_avg_get( port ) Get the average of 64 reads of 1 adc pin
   
RTC - Real Time Clock  
RTC_get( ) Returns current value of the RTC
RTC_write( RTC_time ) Sets the current time of the RTC, in seconds
RTC_priority_set( priority, handler ) Setup the interrupt for the RTC alarm
RTC_isr_set( alarm_hdlr, persec_hdlr, error_hdlr ) Setup the RTC interrupt handlers in the vector table
RTC_isr( void ) Runs appropriate RTC handler and clears interrupt flag
RTC_sec_int( sec_int_enable ) Enables/disables the once per second interrupt
RTC_alr_int( rtc_alarm, enable ) Setup the once RTC timer alarm interrupt
   
SCI - Serial Communication Interface   
ser_int_en( boolean enable) Enable PC_RTS signal to SCI1 to interrupt the SS555
ser_rst_en( boolean enable) Enable PC_RTS signal to SCI1 to reset the SS555
ser_ack( state ) Sets/clears SS555 PC_CTS signal
   
TB - Time Base Counter  
TMBCLK_set( clk_src ) Sets source of TB/DEC clock
TMBCLK_en( enable) Enables/disables the TMB clock
TB_set( tb_value ) sets the current value of the TB
TB_get( ) returns the current value of the TB
TB_priority_set( priority, handler ) Sets up the TB interrupt handler
TB_isr_set( ref0_handler, ref1_handler, error_handler ) Setup the TB interrupt handlers in the vector table
TB_isr( void ) Runs appropriate TB handler and clears interrupt flag
TB_ref_set( which_ref, ref_value, enable) Sets up and enables a TB reference register to interrupt
   
Timing - System Clock   
sysclk_set( freq_select ) Sets system frequency of the MPC555

Development Kits


Microcontrollers


Copyright © 2004 Intec Automation Inc.

2751 Arbutus Rd. Victoria BC Canada V8N 5X7 | 1-866-721-5150 | Terms of Use & Policy
Intec
View Cart 1 866 721 5150