24-bit Counter Card for SR9000 "Smartstar" System (SSCTC-LS)
The SSCTC board has 8 TTL input counters, which will count up to 24 bits at 1.0 Khz. Each input will have a 24 bit( 3 bytes), software reset able counter. We will include a pic.lib library file for you to use in communicating with the card. The library instructions read as follows:
// set counter filter value
// essentially the counters are polled at 1 Khz rate
// the filter value sets the number of identical consecutive states required to detect
// a counter input state change, note this also serves to delay the actual count
// by the length of the filter applied( ie. 1 msec x filter parameter)
// the default value on power up is 10 ie. 10 msec min state duration
int set_filter( int ctr, unsigned char filter);
int read_counter( int ctr, unsigned long *count); // Return the counter value.
int set_counter( int ctr, unsigned long count); // Set counter to a specified value.
int enable_counter( int ctr);
int disable_counter( int ctr);
int read_adc( int ad_chan); // return the value of the 0-5 V analog input.
The card also contains a TTL-RS232 converter for use as an additional serial port.
Custom programming for the PIC is done via the 26 pin connector shown.
Currently we have libraries for the PIC, in Smartstar systems, to perform the following functions:
1) A/D conversion.
2) PWM output at 100 Hz 10% to 90% duty cycle for automotive applications.
3) PWM output at 1.2Khz for 0-5 V analog output.
4) Frequency measurement of flow rates.
5) 5 Wire Touch Overlay control input for an LCD display.
PIC software library functions include the following instructions:
1) R/W an address in PIC RAM. ( This also allows setting control registers)
2) R/W an I/O bit on the PIC chip. ( This also allows setting control registers)
3) R/W PWM duty cycle.
4) Read Touch overlay key hit.
5) Read frequency of the counter input.
More product information from partner
Buy this product Choose a reseller
All products and links listed are subject to our Third-Party Products disclaimer
|