EDF - OnePIC MCU  v1.1.0
8bit Demo
Collaboration diagram for 8bit Demo:

Data Structures

struct  IR_DEMO_RX
 Global variables that are written to in the ISR. More...
struct  IR_DEMO_FLAG
 Contains the RX/TX flags. More...

Modules

 IrDA PICtail
 ISR
 MCP2200 - USB
 mTouch

Files

file  OnePIC_8bit_demo_main.h
file  OnePIC_8bit_demo_mtouch.h

Functions

void demo_main_loop (void)
 IR main loop that sends and receives bytes.
void touch_service ()
 Service the TOUCH_TX_FLAG.
void mcp2200_service ()
 Service the MCP2200_RX_FLAG.
void ir_service ()
 Service the IRDA_RX_FLAG.
void irda_demo_init (void)
 Initilizes the IR link, specifically:
void irda_tx (char c)
 bit-bang a byte to the IR PICtail
void mcp2200_tx (char c)
 send a byte to the UART module back to the listening device

Variables

IR_DEMO_FLAG rx_tx_flag
IR_DEMO_RX rx_byte

Function Documentation

void ir_service ( )

Service the IRDA_RX_FLAG.

  • Print the received byte to the LCD
  • send the received byte to the MCP2200
  • clear flag

don't enter here agin until new data received

Definition at line 152 of file OnePIC_8bit_demo_main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void irda_demo_init ( void  )

Initilizes the IR link, specifically:

  • 16X Clock for the MCP2122
  • TMR4 for UART start bit from the IR transciever
  • Display splash screen

Definition at line 173 of file OnePIC_8bit_demo_main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void irda_tx ( char  c)

bit-bang a byte to the IR PICtail

Parameters:
cchar byte to send to PICtail

Definition at line 215 of file OnePIC_8bit_demo_main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mcp2200_service ( )

Service the MCP2200_RX_FLAG.

  • Print the received byte to the LCD
  • echo back the received byte
  • send it the IR PICtail
  • clear flag

Definition at line 130 of file OnePIC_8bit_demo_main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mcp2200_tx ( char  c)

send a byte to the UART module back to the listening device

Parameters:
cchar byte to send to UART

Definition at line 224 of file OnePIC_8bit_demo_main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void touch_service ( )

Service the TOUCH_TX_FLAG.

  • Print the received byte to the LCD
  • echo back the received byte
  • send it the IR PICtail
  • clear flag
    Note:
    Up, Down, Left, Right, and Enter will print U, D, L, R, E respefuly on the LCD

Definition at line 108 of file OnePIC_8bit_demo_main.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

store all rx/tx bytes in here

Definition at line 39 of file OnePIC_8bit_demo_main.c.

Keep track of rx/tx flags

Definition at line 38 of file OnePIC_8bit_demo_main.c.