Need CRC for RF PIC2PIC Bit arrayed interface


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mrx23
    Thx, I will try the shifting.
    I choosed the Max 148 ADC becouse its free
    You can order sample www.maxim-ic.com
    The other reason:
    I want minimal pin usage for SPI, so the rest of the PIC pins
    can be used for Switches.
    Free is a GOOD PRICE. Here is another way to look at it:

    MAX 148 = 20 pin
    PIC16F168A = 18 Pins
    16 IO pins (-2 if using an Ext OSC)
    (-4 for SPI Interface)
    = 38 Pins for 12 usable IO Pins (or 10 with ext OSC)

    Pic18F2620 = 28 Pins
    24 IO pins (-2 if using an Ext OSC)
    10 ADC (leaves 14 IO PINS remaining)
    = 28 Pins for 14 usable IO Pins (or 12 with ext OSC)

    Just my 2 cents,
    Steve

  2. #2
    Join Date
    Sep 2005
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    I'll choose one of these:
    PIC16F685
    PIC16F689
    PIC16F785
    they are very cheap, about $2 of each
    12 number of 10bit ADC onboard.
    4096 words code sp (does the newest PicBasicPro support above 2k codespace?)
    18 I/o lines (-used ADC)

    Shiftin/out for SPI are VERY slow: 50KHz clk out
    the Max148 supports 2Mhz clk

    Here is a very good CRC8 describe with easy example
    http://pdfserv.maxim-ic.com/en/an/AN...h=%22an3749%22
    Both loop and table driven CRC's, its easy to convert to CRC16.

    About supply:
    My plean is to use a zener based (and shunt transistor) regulator, like here:
    http://www.satcure-focus.com/tutor/page5.htm

    itt'll cut higher voltages than 5V from battery, and the PIC's BODEN will
    restart continuously when the battery is to low.
    The supply will ONLY power the PIC (very max ~1W), from 7.2V battery.

    The same'll be on the receiver side, but it will ha low volt detect
    that will shut down the motor signal.
    (an internal comparator feeded by an internal reference ~1V,
    and voltage divided battery input 1:4)
    That will stop the motor when battery is under 4V.

    Is my plean correct?

Similar Threads

  1. Dallas CRC8 Routines
    By Tom Estes in forum Code Examples
    Replies: 23
    Last Post: - 8th May 2018, 19:07
  2. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 08:55
  3. Doubt with interrupt on change
    By lugo.p in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th March 2010, 16:22
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 01:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 02:07

Members who have read this thread : 0

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