PIC 802.11b

Software e Hardware para uC PIC

Moderadores: andre_luis, 51, guest2003, Renie

PIC 802.11b

Mensagempor tcpipchip » 15 Jun 2012 17:46

Liberado hoje

Mais um trabalho de TCC orientado por mim.

Experimentacao remota com o pic conetado ao WIFI 802.11b e com web server interno.

http://jairsjuniortcc.no-ip.org:8000 - Gravador
http://jairsjuniortcc.no-ip.org:8001 - Webcam

Ele pega um programa via web (sim, voce entra direto no PIC) e grava um programa

REQUISTITOS:
-4Mhz
-PIC16F877A
-Escrita no PORTD

Depois libero o TCC baseado no ATMEGA328 para controle de aeromodelo quando perde o link do Radio.

TCPIPCHIP
Avatar do usuário
tcpipchip
Dword
 
Mensagens: 6560
Registrado em: 11 Out 2006 22:32
Localização: TCPIPCHIPizinho!

Mensagempor tcpipchip » 15 Jun 2012 21:18

Esqueci...seu browser deve suportar HTML5.... :cry:

Aqui um exemplo em MIKROC...habilite LONG ADDRESS para o format .HEX caso queiras compilar....senao pegue o object code abaixo :) :roll:

Código: Selecionar todos
int cnt = 0;
int cont2 =0;

void interrupt () {
   if (INTCON.T0IF == 1) {
      cnt++;
      if(cnt>1000)
      {
         cont2++;
         PORTD = cont2;
         cnt = 0;
      }
      TMR0 = 131;
      INTCON.T0IF = 0;
   }
}

void main(){
   OPTION_REG = 0b10000001;      // Assign prescaler to TMR0
   TMR0  = 131;                // Timer0 initial value
   INTCON = 0b11100000;     // Enable TMRO interrupt, and PEIE: Peripheral Interrupt Enable bit

   PORTD = 0x55;
   TRISD = 0b00000000;   // Configure PORTD as output

   do {
   } while(1);
}


http://www.inf.furb.br/~maw/asm51/tcc.hex

Código: Selecionar todos
int cnt = 0;

void interrupt () {
   if (INTCON.T0IF == 1) {
      cnt++;
      if(cnt>1000)
      {
         PORTD = ~PORTD;
         cnt = 0;
      }
      TMR0 = 131;
      INTCON.T0IF = 0;
   }
}

void main(){
   OPTION_REG = 0b10000001;      // Assign prescaler to TMR0
   TMR0  = 131;                // Timer0 initial value
   INTCON = 0b11100000;     // Enable TMRO interrupt, and PEIE: Peripheral Interrupt Enable bit

   PORTD = 0x55;
   TRISD = 0b00000000;   // Configure PORTD as output

   do {
   } while(1);
}


http://www.inf.furb.br/~maw/asm51/tcc2.hex
Avatar do usuário
tcpipchip
Dword
 
Mensagens: 6560
Registrado em: 11 Out 2006 22:32
Localização: TCPIPCHIPizinho!


Voltar para PIC

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante

x