Shop OBEX P1 Docs P2 Docs Learn Events
Need some strings ** EDITED** — Parallax Forums

Need some strings ** EDITED**

TCTC Posts: 1,019
edited 2015-09-01 10:52 in Propeller 1
Hello all,

Its been a long while since I've been on here. Things have changed.

WOW, I have been gone a while. It also does not help being tired when writing a post. Lets try this again, but make a lot more sense.(referring to striked out portion.)

I am working with TI's TLV320AIC3254 audio DSP chip. It works good for me, and only requires a I2C com to work with it. The prop does a great job. I can do basic stuff with it like adjust the volume. But I want to do more.

The chip has countless registers, on countless pages(im to lazy to count all of them). Texas Ins, has a program called PurePath that is able to take a DSP design compile code to load to the chip. The code has to be loaded every time the chip is powered up. The code is loaded by either a PC, or a MCU. I am going to use the prop to load the code. Right now I am only trying to get the prop to load a basic DSP program into it. Then after I have it working, figure a way to store in to EEPROM, the startup code, the EQ code, the EQ values, etc...

But I am a little stuck. I am currently using JonnyMac's I2C driver, because it is easy, and it is faster for me to get a basic feel for it. Data is sent to the chip in 8-bit segments. First the device ID is sent, then the starting register, then the data for that register. This is TI's syntax for the chip; W 30 20 01. That would write a $01 into register $20. I can load one register with no problem, its when I get to loading many registers at a time that I am having problems.

I would like to try (not a requirement) to keep something like TI's syntax. I am currently using(doing this from memory, since I am at work):
OBJ
   com   :   "jm_i2c"


PUB W(reg, data)

   com.wait($30)     'TI chip address
   com.write(reg)     'send register location 
   com.write(data)   'load data
   com.stop             'send stop bit


It works for sending one value, but PurePath will output a string of values for certain things. For example, loading a Biquad, I have seen where it loads 50 registers at a time, in one string.
W 30 20 00 02 05 34 5A 9A ETC.....

But my code doesn't, I have to do one at a time. I would like to have it the way TI has it, where the same code can load one register, or many registers. I have tried adding "string" before the "data" tag, and that works as long as there is no $00 values. But there are a lot of $00 values that are loaded.

So my question is, what ideas does anyone have that might work? Or maybe someone might have a better idea then I have? Please, I want this to work, but I also dont want to have to spend days to months just taking the PurePath output, and copying to the prop by hand.

Thanks for any input you have
TC


TI's command interface syntax is;
W 30 00 00

W = write
30 = device id
first 00 = starting register
second 00 = data

Thats the easy part for me. Its when I get into having to load consecutive registers.
W 30 04 03 91 08 00 00

Im trying to keep the syntax around the same(if I can). That way I can easily take what PurePath(TI's DSP program) figures out, and have the prop load the chip.

I was wondering if anyone has some ideas that might help me?

Also, I would like to have the prop read an EEPROM, and load the values into TI's chip. but thats at a later date.

Thanks
TC

Comments

  • TCTC Posts: 1,019
    I have changed my first post because I could not understand what I wrote. I'm sorry.
  • Heater.Heater. Posts: 21,230
    Don't feel bad. We did not understand it either :)

    Would this help: http://www.robot-electronics.co.uk/i2c-tutorial ?
  • TCTC Posts: 1,019
    Heater. wrote: »
    Don't feel bad. We did not understand it either :)

    Would this help: http://www.robot-electronics.co.uk/i2c-tutorial ?

    :)

    It does have some good information, but it does not help me figure out the best, and easiest way to send varying amounts of data to the TI chip. Most of the commands are looking for the order in first post. But then other times it is looking for consecutive register writes. Thats what I am really getting stuck on.
  • Use Jon's object (or mine: Basic_I2C_Driver) as a model. These have routines to send a start bit, a byte of data, then a stop bit. You can call the write data routine multiple times to send multiple bytes of data. From your description, the first byte sent is the starting register number. As long as you keep sending bytes of data, this starting register number is automatically incremented for each data byte sent. The stop bit ends the sequence. It sounds like, if you want to jump to another register group, you need to repeat the sequence starting with the start bit.

    I assume that your data is in some kind of buffer or table. I would write a routine that takes 4 parameters: the device address, the starting register number, the number of bytes of data to be sent, and the address of the first byte of data like: PUB writeBlock( devAddr, regStart, dataCnt, dataAddr). Your routine would look somewhat like:
    com.wait(devAddr)
    com.write(regStart)
    repeat dataCnt
       com.write(byte[ dataAddr++ ])
    com.stop
    

    You could then call writeBlock for each group of registers you want to initialize. I would probably set up a table with each entry containing a starting register number, a byte count, then that number of data bytes. A byte count of zero would mark the end of the table. A simple loop would go through the table using writeBlock to set up each group of registers.
  • TCTC Posts: 1,019
    Thank you Mike,

    That is exactly what I was trying to think of, but I was having trouble figuring it out. I've been away from the prop for a couple months, and I have forgotten some of the things I use to do. Sometimes is sucks having brain trauma.

    I do like that way you showed. I can use it to read an EEPROM as well.

    Thank you
  • TCTC Posts: 1,019
    I just wanted to give everyone an idea of what I have to do. This code is from TI's PurePath software. It is a dual 20 band EQ set to flat. I just copied and pasted what PurePath sent to the TI chip. I am sorry about how long the code is.
    w 30 00 00
    w 30 01 01
    w 30 00 00
    w 30 04 03 91 08 00 00
    w 30 1B 00
    w 30 0B 82 88 00 80
    w 30 74 00
    w 30 44 00
    w 30 3C 00
    w 30 0F 02 1C 04
    w 30 00 01
    w 30 02 A9
    w 30 01 08
    w 30 02 A1
    w 30 47 32
    w 30 7B 01
    w 30 00 2C 04
    w 30 08 00 00 00 00 7F FF FF 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 2D
    w 30 08 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 2E
    w 30 08 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00
    w 30 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 78 40 00 00 00 00 00 00 00
    w 30 00 2F
    w 30 08 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F FF FF 00
    w 30 40 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 78 00 00 00 00 40 00 00 00
    w 30 00 30
    w 30 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 31
    w 30 08 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 32
    w 30 08 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF DC 00 00 FF C0 00 00
    w 30 78 FF 0A 00 00 FF 7B 00 00
    w 30 00 33
    w 30 08 FD 21 00 00 FE 54 00 00 FA BE 00 00 F2 AB 00 00 28 A9 00 00 00 29 00 00 02 30 00 00 00 B7 00 00 00 5E 00 00 01 47 00 00 03 D3 00 00 07 BD 00 00 40 00 00 00 14 EF 00 00
    w 30 40 00 EF 00 00 01 86 00 00 2B E8 00 00 FE 88 00 00 FE 15 00 00 F8 F9 00 00 7F F7 00 00 80 09 00 00 7F EF 00 00 00 11 00 00 00 11 00 00 7F DE 00 00 80 00 00 00 7F FF FF 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 34
    w 30 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 00 00 00 00
    w 30 00 3E
    w 30 08 00 00 00 00 7F FF FF 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 3F
    w 30 08 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 40
    w 30 08 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00
    w 30 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 78 40 00 00 00 00 00 00 00
    w 30 00 41
    w 30 08 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F FF FF 00
    w 30 40 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 78 00 00 00 00 40 00 00 00
    w 30 00 42
    w 30 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 43
    w 30 08 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 44
    w 30 08 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF DC 00 00 FF C0 00 00
    w 30 78 FF 0A 00 00 FF 7B 00 00
    w 30 00 45
    w 30 08 FD 21 00 00 FE 54 00 00 FA BE 00 00 F2 AB 00 00 28 A9 00 00 00 29 00 00 02 30 00 00 00 B7 00 00 00 5E 00 00 01 47 00 00 03 D3 00 00 07 BD 00 00 40 00 00 00 14 EF 00 00
    w 30 40 00 EF 00 00 01 86 00 00 2B E8 00 00 FE 88 00 00 FE 15 00 00 F8 F9 00 00 7F F7 00 00 80 09 00 00 7F EF 00 00 00 11 00 00 00 11 00 00 7F DE 00 00 80 00 00 00 7F FF FF 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 46
    w 30 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    w 30 40 00 00 00 00 00 00 00 00
    w 30 00 98
    w 30 08 08 00 00 00 30 04 00 00 08 04 AA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 00 00 00 31 9C AA 00 00 00 00 00 28 FC 00 00 50 04 00 00 30 08 00 00 38 0C 01 00
    w 30 40 28 FC AA 00 38 10 02 00 38 14 04 00 38 18 05 00 00 00 00 00 48 1C 01 00 28 04 06 00 28 04 03 00 38 20 07 00 38 24 08 00 38 28 0A 00 38 2C 0B 00 00 00 00 00 48 30 01 00
    w 30 78 28 04 0C 00 28 04 09 00
    w 30 00 99
    w 30 08 38 34 0D 00 38 38 0E 00 38 3C 10 00 38 40 11 00 00 00 00 00 48 44 01 00 28 04 12 00 28 04 0F 00 38 48 13 00 38 4C 14 00 38 50 16 00 38 54 17 00 00 00 00 00 48 58 01 00
    w 30 40 28 04 18 00 28 04 15 00 38 5C 19 00 38 60 1A 00 38 64 1C 00 38 68 1D 00 00 00 00 00 48 6C 01 00 28 04 1E 00 28 04 1B 00 38 70 1F 00 38 74 20 00 38 78 22 00 38 7C 23 00
    w 30 78 00 00 00 00 48 80 01 00
    w 30 00 9A
    w 30 08 28 04 24 00 28 04 21 00 38 84 25 00 38 88 26 00 38 8C 28 00 38 90 29 00 00 00 00 00 48 94 01 00 28 04 2A 00 28 04 27 00 38 98 2B 00 38 9C 2C 00 38 A0 2E 00 38 A4 2F 00
    w 30 40 00 00 00 00 48 A8 01 00 28 04 30 00 28 04 2D 00 38 AC 31 00 38 B0 32 00 38 B4 34 00 38 B8 35 00 00 00 00 00 48 BC 01 00 28 04 36 00 28 04 33 00 38 C0 37 00 38 C4 38 00
    w 30 78 38 C8 3A 00 38 CC 3B 00
    w 30 00 9B
    w 30 08 00 00 00 00 48 D0 01 00 28 04 3C 00 28 04 39 00 38 D4 3D 00 38 D8 3E 00 38 DC 40 00 38 E0 41 00 00 00 00 00 48 E4 01 00 28 04 42 00 28 04 3F 00 38 E8 43 00 38 EC 44 00
    w 30 40 38 F0 46 00 38 F4 47 00 00 00 00 00 48 F8 01 00 28 04 48 00 28 04 45 00 38 FC 49 00 39 04 4A 00 39 08 4C 00 39 0C 4D 00 00 00 00 00 10 00 A3 00 10 05 4D 00 49 10 01 00
    w 30 78 28 04 4E 00 28 04 4B 00
    w 30 00 9C
    w 30 08 39 14 4F 00 39 18 50 00 39 1C 52 00 39 20 53 00 00 00 00 00 49 24 01 00 28 04 54 00 28 04 51 00 39 28 55 00 39 2C 56 00 39 30 58 00 39 34 59 00 00 00 00 00 49 38 01 00
    w 30 40 28 04 5A 00 28 04 57 00 39 3C 5B 00 39 40 5C 00 39 44 5E 00 39 48 5F 00 00 00 00 00 49 4C 01 00 28 04 60 00 28 04 5D 00 39 50 61 00 39 54 62 00 39 58 64 00 39 5C 65 00
    w 30 78 00 00 00 00 49 60 01 00
    w 30 00 9D
    w 30 08 28 04 66 00 28 04 63 00 39 64 67 00 39 68 68 00 39 6C 6A 00 39 70 6B 00 00 00 00 00 49 74 01 00 28 04 6C 00 28 04 69 00 39 78 6D 00 39 7C 6E 00 39 80 70 00 39 84 71 00
    w 30 40 00 00 00 00 49 88 01 00 28 04 72 00 28 04 6F 00 39 8C 73 00 39 90 74 00 39 94 76 00 39 98 77 00 00 00 00 00 33 9C 79 00 28 04 75 00 28 08 78 00 3B A0 7B 00 3B 98 78 00
    w 30 78 31 A0 AA 00 39 A4 AB 00
    w 30 00 9E
    w 30 08 28 00 7A 00 39 A8 AC 00 39 AC AE 00 39 B0 AF 00 00 00 00 00 49 B4 01 00 28 04 B0 00 28 04 AD 00 39 B8 B1 00 39 BC B2 00 39 C0 B4 00 39 C4 B5 00 00 00 00 00 49 C8 01 00
    w 30 40 28 04 B6 00 28 04 B3 00 39 CC B7 00 39 D0 B8 00 39 D4 BA 00 39 D8 BB 00 00 00 00 00 49 DC 01 00 28 04 BC 00 28 04 B9 00 39 E0 BD 00 39 E4 BE 00 39 E8 C0 00 39 EC C1 00
    w 30 78 00 00 00 00 49 F0 01 00
    w 30 00 9F
    w 30 08 28 04 C2 00 28 04 BF 00 39 F4 C3 00 39 F8 C4 00 39 FC C6 00 3A 04 C7 00 00 00 00 00 4A 08 01 00 28 04 C8 00 28 04 C5 00 3A 0C C9 00 3A 10 CA 00 3A 14 CC 00 3A 18 CD 00
    w 30 40 00 00 00 00 4A 1C 01 00 28 04 CE 00 28 04 CB 00 3A 20 CF 00 3A 24 D0 00 3A 28 D2 00 3A 2C D3 00 00 00 00 00 4A 30 01 00 28 04 D4 00 28 04 D1 00 3A 34 D5 00 3A 38 D6 00
    w 30 78 10 00 A2 00 10 05 4C 00
    w 30 00 A0
    w 30 08 3A 3C D8 00 3A 40 D9 00 00 00 00 00 4A 44 01 00 28 04 DA 00 28 04 D7 00 3A 48 DB 00 3A 4C DC 00 3A 50 DE 00 3A 54 DF 00 00 00 00 00 4A 58 01 00 28 04 E0 00 28 04 DD 00
    w 30 40 3A 5C E1 00 3A 60 E2 00 3A 64 E4 00 3A 68 E5 00 00 00 00 00 4A 6C 01 00 28 04 E6 00 28 04 E3 00 3A 70 E7 00 3A 74 E8 00 3A 78 EA 00 3A 7C EB 00 00 00 00 00 4A 80 01 00
    w 30 78 28 04 EC 00 28 04 E9 00
    w 30 00 A1
    w 30 08 3A 84 ED 00 3A 88 EE 00 3A 8C F0 00 3A 90 F1 00 00 00 00 00 4A 94 01 00 28 04 F2 00 28 04 EF 00 3A 98 F3 00 3A 9C F4 00 3A A0 F6 00 3A A4 F7 00 00 00 00 00 4A A8 01 00
    w 30 40 28 04 F8 00 28 04 F5 00 3A AC F9 00 3A B0 FA 00 3A B4 FC 00 3A B8 FD 00 00 00 00 00 4A BC 01 00 28 04 FE 00 28 04 FB 00 3A C0 FF 00 3A C5 00 00 3A C9 02 00 3A CD 03 00
    w 30 78 00 00 00 00 4A D0 01 00
    w 30 00 A2
    w 30 08 28 05 04 00 28 05 01 00 3A D5 05 00 3A D9 06 00 3A DD 08 00 3A E1 09 00 00 00 00 00 4A E4 01 00 28 05 0A 00 28 05 07 00 3A E9 0B 00 3A ED 0C 00 3A F1 0E 00 3A F5 0F 00
    w 30 40 00 00 00 00 4A F8 01 00 28 05 10 00 28 05 0D 00 3A FD 11 00 3B 05 12 00 3B 09 14 00 3B 0D 15 00 00 00 00 00 4B 10 01 00 28 05 16 00 28 05 13 00 3B 15 17 00 3B 19 18 00
    w 30 78 3B 1D 1A 00 3B 21 1B 00
    w 30 00 A3
    w 30 08 00 00 00 00 4B 24 01 00 28 05 1C 00 28 05 19 00 3B 29 1D 00 3B 2D 1E 00 3B 31 20 00 3B 35 21 00 00 00 00 00 33 9D 23 00 28 09 22 00 28 05 1F 00 3B A1 25 00 3B 99 22 00
    w 30 40 33 38 7A 00 3B 38 99 00 28 01 24 00 3B 3C 97 00 3B 3C 7C 00 3B 40 93 00 3B 40 80 00 3B 44 95 00 3B 44 7E 00 3B 48 8F 00 3B 48 84 00 3B 4C 91 00 3B 4C 82 00 3B 50 8D 00
    w 30 78 3B 50 86 00 3B 54 8B 00
    w 30 00 A4
    w 30 08 3B 54 88 00 10 00 A1 00 10 05 4B 00 3B 58 8A 00 3B 58 89 00 3B 5C 98 00 3B 5C 7B 00 3B 60 90 00 3B 60 83 00 3B 64 94 00 3B 64 7F 00 3B 68 96 00 3B 68 7D 00 3B 6C 92 00
    w 30 40 3B 6C 81 00 3B 70 8E 00 3B 70 85 00 3B 74 8C 00 3B 74 87 00 33 39 24 00 3B 39 43 00 20 00 9D 00 3B 3D 41 00 3B 3D 26 00 3B 41 3D 00 3B 41 2A 00 3B 45 3F 00 3B 45 28 00
    w 30 78 3B 49 39 00 3B 49 2E 00
    w 30 00 A5
    w 30 08 3B 4D 3B 00 3B 4D 2C 00 3B 51 37 00 3B 51 30 00 3B 55 35 00 3B 55 32 00 3B 59 34 00 3B 59 33 00 3B 5D 42 00 3B 5D 25 00 3B 61 3A 00 3B 61 2D 00 3B 65 3E 00 3B 65 29 00
    w 30 40 3B 69 40 00 3B 69 27 00 3B 6D 3C 00 3B 6D 2B 00 3B 71 38 00 3B 71 2F 00 3B 75 36 00 3B 75 31 00 00 00 00 00 33 7D 49 00 9B 81 47 00 3B 85 4A 00 3B 89 45 00 3B 8D 48 00
    w 30 78 3B 91 44 00 3B 95 46 00
    w 30 00 A6
    w 30 08 33 7C 9F 00 3B 80 9D 00 20 11 4D 00 3B 84 A0 00 3B 88 9B 00 3B 8C 9E 00 3B 90 9A 00 3B 94 9C 00 33 7D 48 00 3B 81 4A 00 20 10 A3 00 3B 85 47 00 3B 89 45 00 3B 8D 49 00
    w 30 40 3B 91 46 00 3B 95 44 00 33 7C 9E 00 3B 80 A0 00 20 11 4C 00 3B 84 9D 00 3B 88 9B 00 3B 8C 9F 00 3B 90 9C 00 3B 94 9A 00 33 79 33 00 33 7D 45 00 20 10 A2 00 9B 81 43 00
    w 30 78 3B 85 46 00 3B 89 48 00
    w 30 00 A7
    w 30 08 3B 8D 44 00 3B 91 47 00 3B 95 49 00 33 78 89 00 33 7C 9B 00 20 11 4B 00 9B 80 99 00 3B 84 9C 00 3B 88 9E 00 3B 8C 9A 00 3B 90 9D 00 3B 94 9F 00 33 7D 44 00 3B 81 46 00
    w 30 40 20 10 A1 00 3B 85 43 00 3B 89 48 00 3B 8D 45 00 3B 91 49 00 3B 95 47 00 33 7C 9A 00 3B 80 9C 00 20 11 4A 00 3B 84 99 00 3B 88 9E 00 3B 8C 9B 00 3B 90 9F 00 3B 94 9D 00
    w 30 78 00 00 00 00 00 00 00 00
    w 30 00 A8
    w 30 08 10 00 A3 00 10 05 4D 00 20 10 A0 00 63 A8 7B 00 3B AC A5 00 6B A4 7A 00 00 00 00 00 18 10 02 00 08 10 A6 00 28 00 A4 00 33 B0 A6 00 3B B7 FC 00 00 00 00 00 00 00 00 00
    w 30 40 88 14 02 00 90 08 00 00 88 00 02 00 33 BB FC 00 90 88 00 00 50 08 00 00 3B B0 A8 00 83 B3 FF 00 83 B3 FE 00 20 00 A6 00 88 0C 04 00 88 10 07 00 10 14 A6 00 08 14 A6 00
    w 30 78 88 00 07 00 10 17 FF 00
    w 30 00 A9
    w 30 08 08 14 A6 00 00 00 00 00 88 00 03 00 10 17 FE 00 08 14 A6 00 00 00 00 00 33 B4 A8 00 3B B4 A6 00 63 A9 25 00 18 1C 00 00 20 00 A7 00 3B AD 4F 00 6B A5 24 00 00 00 00 00
    w 30 40 18 10 02 00 08 11 50 00 28 01 4E 00 33 B1 50 00 3B B7 FD 00 00 00 00 00 00 00 00 00 88 14 02 00 90 0C 00 00 88 00 02 00 33 BB FD 00 90 8C 00 00 50 0C 00 00 3B B1 52 00
    w 30 78 83 B3 FF 00 83 B3 FE 00
    w 30 00 AA
    w 30 08 20 01 50 00 88 0C 04 00 88 10 07 00 10 19 50 00 08 19 50 00 88 00 07 00 10 1B FF 00 08 19 50 00 00 00 00 00 88 00 03 00 10 1B FE 00 08 19 50 00 00 00 00 00 33 B5 52 00
    w 30 40 3B B5 50 00 00 00 00 00 18 20 00 00 20 01 51 00
    w 30 00 01
    w 30 14 35
    w 30 0C 08 08
    w 30 0E 08 08
    w 30 09 3C
    w 30 10 06 06
    w 30 12 06 06
    w 30 00 00
    w 30 41 DC DC
    w 30 3F D6
    w 30 40 00
    
  • I don't see it in your samples -- are you making a call to i2c.setup() or i2c.setupx() to establish the pins you're using?
  • kwinnkwinn Posts: 8,697
    After seeing all those zeros you may want to add a routine to fill registers with fixed data as well.
  • kwinnkwinn Posts: 8,697
    BTW, importing the data PurePath sends to a spreadsheet might be a big help in analyzing all of that.
  • TCTC Posts: 1,019
    edited 2015-09-03 01:27
    JonnyMac wrote: »
    I don't see it in your samples -- are you making a call to i2c.setup() or i2c.setupx() to establish the pins you're using?

    I am using
    PUB start(scl,sda)
    
      I2C.setupx(scl,sda)           'setup scl pin and sda pin
    
      return true
    
    only because the development board I am using has a 256k EEPROM on the I2S lines, and its address is the same as the props. ** ADDED ** The EEPROM is for the USB chip. It holds the USB config data. It does not hold the DSP chip data. I wish it did though, I would just copy it, and reload it.


    kwinn wrote: »
    After seeing all those zeros you may want to add a routine to fill registers with fixed data as well.

    I thought of that, but the TI chip has 186 pages of 127 registers each (23,622 registers). That is way to many registers for me to load the default values for all the registers (by hand maybe), just to have a consistent way to load the chip. I did start doing that though. But when I figured out how many registers this thing had, it changed my mind.

    kwinn wrote: »
    BTW, importing the data PurePath sends to a spreadsheet might be a big help in analyzing all of that.

    I am working on that. There are a couple guys at work that are great at VB programing. I'm going to see if they could make a simple script that would take a .txt file, reformat it for the prop, then I could copy and paste. But right now they are busy, so I have to wait.

  • kwinnkwinn Posts: 8,697
    TC wrote: »
    ......

    t.


    kwinn wrote: »
    After seeing all those zeros you may want to add a routine to fill registers with fixed data as well.

    I thought of that, but the TI chip has 186 pages of 127 registers each (23,622 registers). That is way to many registers for me to load the default values for all the registers (by hand maybe), just to have a consistent way to load the chip. I did start doing that though. But when I figured out how many registers this thing had, it changed my mind.

    kwinn wrote: »
    BTW, importing the data PurePath sends to a spreadsheet might be a big help in analyzing all of that.

    I am working on that. There are a couple guys at work that are great at VB programing. I'm going to see if they could make a simple script that would take a .txt file, reformat it for the prop, then I could copy and paste. But right now they are busy, so I have to wait.

    If you have a .txt file on the pc you can send it to the prop and have a simple spin program convert it to the format you want. Done that for a pdf listing to convert the ascii characters to hex.

Sign In or Register to comment.