Jump to content

sorg

Members
  • Content Count

    4
  • Joined

  • Last visited

Everything posted by sorg

  1. I have tried with 2400 and 4800 Bauds and it was not working! Let's search together the solution!
  2. Which PIC do you use ??? On a 12F675, the following test : while ((ADCon0 & 4) == 4) { nop(); } should be: while ((ADCon0 & [B]2[/B]) == [B]2[/B]) { nop(); } But i don't know if the Adcon0 register have the same shape on each model...
  3. Hello, I'am trying some programming with a 12F675 ... I have the following test code: #include <system.h> #include "main.h" //Config de la liason série #pragma RS232_RXPORT GPIO #pragma RS232_TXPORT GPIO #pragma RS232_RXPIN 4 #pragma RS232_TXPIN 5 #pragma RS232_BAUD 4800 #pragma TRUE_RS232 1 #pragma CLOCK_FREQ 4000000 #define CR 0x0d //Retour Chariot //Message de Bienvenue. const char* bienvenue = " Convertisseur: \0"; //Define device config block asm { list p=PIC12F675 __config H'31C4' } ////////////////////////////////////////////// // Interrupt handler ////////////
×
×
  • Create New...