EEPROM Issue


Closed Thread
Results 1 to 14 of 14

Thread: EEPROM Issue

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: EEPROM Issue

    Local vars is a dream (and in wish list) for PBP.

    I think with a bit of creativity, structures can be implemented with arrays in PBP also.

    Not specific to data structures though.

    Ioannis

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,696


    Did you find this post helpful? Yes | No

    Default Re: EEPROM Issue

    pbp structures , not really
    I tried this for array of mixed variable types [ effortless in C ] but its more trouble than its worth

    http://www.picbasic.co.uk/forum/show...ight=structure
    Warning I'm not a teacher

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: EEPROM Issue

    I'm restructuring the whole USB protocol. I think I figured out I was trying to shove a 247 byte packet through a 64 byte USB hole. Instead of creating a new USB ID# for every variable I need to transfer (247 of them), I will build a 64 byte packet with relevant data. This will most definitely speed up the transmissions as well as offer the flexibility of not having to transfer a bunch of data that hasn't changed.

    Each variable will have a unique code (0x00 >> 0xFF) that gets loaded into iCmd(x) (at the PIC side) or oCmd(x) (at the PC side) with the data value being put into iData(x)/oData(x). For a 64 byte array, it takes 2 packets; Table1L and Table1H. On the PC side I added a module to handle sorting and loading packets. Hope to be back testing later today.

    And to think I originally thought this was an EEPROM issue. I'm on a learning spree once again.

  4. #4
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: EEPROM Issue

    After 2+ weeks of battling this challenge, I have conquered!

    Issue #1: Trying to shove 247 bytes of data through a 64 byte Endpoint.
    Fix: Restructured the Send/Receive from lots of variables to a 64 byte packet. The packet can be structured any way I need.

    Issue #2: The HIDmaker-generated code for Sending Reports had a glitch.
    Fix: I found it & fixed it in my code. I notified Dr. Bob about the glitch, hopefully it will be incorporated into his current releases and any updates he issues. I'm madly in love with HIDmaker, but it isn't quite perfect.

Similar Threads

  1. SPI SS Issue
    By sstt1976 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th October 2014, 01:04
  2. IF-THEN issue
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th February 2014, 23:09
  3. EEPROM or DATA issue with 16F1503
    By scasale in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th October 2013, 05:46
  4. 12F675 - another issue
    By fratello in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th August 2011, 20:26
  5. Code Issue - select case or 'if' issue - not sure why
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th October 2007, 09:52

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