USART 9 bit receiver with address detect


Closed Thread
Results 1 to 1 of 1
  1. #1
    meldavia's Avatar
    meldavia Guest

    Question USART 9 bit receiver with address detect

    I need to program a PIC16F648 as a slave device using the address detect mode under interrupt. The idea is to flag the foreground program only when an address match has occurred with a small data packet attached that was read correctly. I would then ACK the host and set a global flag to tell the foreground that a packet has been received.

    eg:- if I am address $85 then

    $185 (address $85 , thats me so I read on)
    $10 (eg:- packet length 16 bytes)
    $CC (checksum)
    $nn....$nn (16 bytes of data)

    if all went well, I then send an ACK to the host
    and flag the foreground routine that a packet is ready.

    Can anyone point me to a code example to save me some time? Thanks in advance, Dave
    Last edited by meldavia; - 29th October 2006 at 02:17.

Similar Threads

  1. Sleep Mode
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th March 2008, 10:31
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. RF Transmitter
    By et_Fong in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th October 2005, 16:34
  4. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07
  5. 9 bit addressable USART
    By barkerben in forum General
    Replies: 9
    Last Post: - 4th January 2005, 22:57

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