Update 2 (3 Oct '07)

After CA1 , I've now proceeded to integrate the Matchport b/g with the PIC16F76.
Initial tests using the demoboard of the PIC were not successful as i did not fully understand how the demoboard worked. I will start using the breadboard and that is better as well since i will have to design a circuit for PCB fabrication anyway.

A sample program i've written for the PIC to communicate through the Matchport b/g.
==============================================
#include <16F76.h>
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
void initialization();

void main(){

int c;
initialization();
output_bit(PIN_B3,1);
output_bit(PIN_B4,1);
output_bit(PIN_B5,1); //to check if PIC is working
while(1) {

printf ("hi");

c = getc();
if(c=='b')
{
output_bit(PIN_B0,1);
output_bit(PIN_B1,0);
output_bit(PIN_B2,1);to check if anything is received
}
end if
else{
output_bit(PIN_B0,0);
output_bit(PIN_B1,0);
output_bit(PIN_B2,0);
}end else
}
end while

}//end main

void initialization(){

SET_TRIS_A(0xFF);
SET_TRIS_B(0x00);
SET_TRIS_C(0xCF);
}
====================================================

Aims : to finish this in 1 week so i can start desgining the PCB for the Matchport and PIC as 1 single module.

Other stuff : Found out that device tracking can be done in LT6 . Useful to track distance to test for the color changing fabric. Website —> devicetracking.homelinux.com

Results : tests linking the Matchport to the PIC16F76 were successful on the demo boards. Data could be passed from the PIC to computer and vice versa via the Matchport.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License