Appendix 2: Sample Code; Example Code - Rosen 9100452 User Manual

Wireless fm transmitter part# 9100458
Table of Contents

Advertisement

Rosen Entertainment Systems LLC

Appendix 2: Sample Code

The sample code below is used to communicate to the FMT using a PIC
micro controller, when using this method in conjunction with
outputting information on a video screen a user is able to see visually
on screen the status of the FMT.

Example Code

I/O Name
Function
SEL1_A:
Clear
SEL2_B:
Clock
FMTLOAD:
Load (reset)
*** INITIALIZATION PROCESS ***
// Initialization I/O
SEL1_A = 1;
SEL2_A = 1;
FMTLOAD = 1;
// Reset Counters
SEL1_A = 0;
< delay 2 microseconds >
SEL1_A = 1;
// Restore Previous
< read stored station from EEPROM >
< call function to update the FMT device with stored station >
*** FMT DEVICE UPDATE PROCESS ***
// verify that new station is to be programmed
// reset counter
SEL1_A = 0;
< delay 2 microseconds >
SEL1_A = 1;
// increment counter until desired station is achieved
Rosen FMT. Part # 9100458
8/30/2005

Advertisement

Table of Contents
loading

Related Products for Rosen 9100452

Table of Contents