16f628 Usart


Closed Thread
Results 1 to 4 of 4

Thread: 16f628 Usart

  1. #1

    Question 16f628 Usart

    How is the 9th bit address mode setup? The loading of the slave address is the unclear area. Is it loaded into the EEPROM and the 9th bit is an interrupt so the program code can run a compare (LOOKUP) and if they match then accept data.? OR, if the comparision is done within the firmware of the USART how is address data loaded in? I understand the RCREG can be written to and perhaps this is where the address data goes. Another question about the USART running the routine: Is the address data held in a special flash/EEPROM section within the USART module or must it be written to each power up? The data sheet is not specific about this and the MicroChip site is down for now.

  2. #2

    Smile me:re

    for those interested in the 9th bit ID setup.when set the PIC uses this data as an address for the software comparison.Several flags are set and cleared during this process which can be used in the program....hm let see, now Where did I put those other PICs

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166

    Default

    fowardbias, The 9th bit for transmission must be loaded separatly via the TXSTA.0 bit before the register is loaded with the lower 8 bits. Conversly the receiver will place the 9th bit into register RCSTA.0 for you to interpret. This bit can be used by you as a parity bit or as a data bit.

    Dave Purola,
    N8NTA

  4. #4

    Default

    Thanks Dave, Most of this is falling in place. Looks like the FERR bit when set by a missing stop bit doesn't set an interrupt directly and must be polled for? This type of error may not be a problem if the baudrate is correct.

Similar Threads

  1. byte Tx w/ USART 16f876a problem
    By GargamelDigi in forum mel PIC BASIC
    Replies: 2
    Last Post: - 15th July 2008, 05:50
  2. problem with USART
    By leemin in forum Serial
    Replies: 4
    Last Post: - 11th December 2006, 17:56
  3. Replies: 5
    Last Post: - 1st December 2004, 12:49
  4. 16F628 Hardware USART problem
    By atomski in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 26th May 2004, 07:10
  5. SERIN2 not working with 16F628
    By d1camero in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th May 2004, 20:37

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts