Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: snowsh

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. yep its seems to be passing data through now. BRD...

    yep its seems to be passing data through now. BRD is already taken are of. the motherboard select bits set all the trancievers to active and the chip select line decoder ICs1 and 5.

    Nice console!...
  2. thanks for the advice Foxhood. In reference to...

    thanks for the advice Foxhood. In reference to your query if the pin mode was set correctly, I was running a check within my write function to determine if it was in read mode. You will note the...
  3. What console do you have? Im working on a...

    What console do you have? Im working on a Soundtracs Eric, its quite a beast.
  4. well I think I may have found a solution. ...

    well I think I may have found a solution.

    reading this thread using answer #4 from Fungus, this seems to allow me to pass data through this 74LS245

    here is my modified function to put data on...
  5. Thats correct. I have removed motherboard id 3...

    Thats correct. I have removed motherboard id 3 for my bench testing. The jumpers set the address and IC2 is a comparater. writeBoardAddress() does exactly that and works fine.



    yes conn 2 is...
  6. I just double checked the board. The line showing...

    I just double checked the board. The line showing pin 19 connected to the common of the resistor package is an error. It is only connected to pin 19 on IC2, 18 IC1 and IC5 19 The is the motherboard...
  7. yes there are some ommisions in the schematic. I...

    yes there are some ommisions in the schematic. I have spent weeks noting the circuit and tracing lines. Pin one is connected to RD, and when the motherboard is selected, the OE pin (19) is pulled low...
  8. I should make it clear: I can see the voltage...

    I should make it clear: I can see the voltage change HIGH / LOW on the a side (a0 - a7) of the LS245 which is connected to the mega. The b side (b0-b7) is allways HIGH - dont forget the 22k pullup...
  9. The OE is LOW, and the DIR pin is HIGH. ...

    The OE is LOW, and the DIR pin is HIGH.

    Schematic for the motherboard is here:

    https://drive.google.com/file/d/1qv4...ew?usp=sharing

    I am connecting at conn 4 top right. The LS245 in...
  10. some trouble with a 74LS245 octal bus tranceiver...

    OK, start at the start....

    I have a mixing console that was built in the 80s and uses a z80 to control switching of audio routing, leds and detect button presses.

    The console consists of 7...
  11. correct: digitalWrite(ADDR[0], ((j &...

    correct:



    digitalWrite(ADDR[0], ((j & 0x01) ? HIGH : LOW)); // bit-fiddle to set the i-th pin to HIGH IFF binary version of j
    digitalWrite(ADDR[1], ((j & 0x02) ? HIGH :...
  12. yes thanks guys! All a bit mixed up, but the...

    yes thanks guys! All a bit mixed up, but the confusion was writing decimal when it should have been hex......

    getting there.
  13. doh! of course it should be written in hex.......

    doh!

    of course it should be written in hex....



    digitalWrite(ADDR[0], ((j & 0x01) ? HIGH : LOW)); // bit-fiddle to set the i-th pin to HIGH IFF binary version of j
    ...
  14. trying to set pins to control an 11 bit parallel bus. Bit fiddle?

    I am working on replacing a Z80 controller board in an analog recording console with a teensy replacement. The z80 board handles some input from switches and sets electronic switches.

    I have...
  15. Replies
    1
    Views
    197

    WS2812E teensy4.1 logic level shifting

    I see that Paul S suggests not to use mosfet level shifters...



    is this reccommendation only for teensy 3.x? I have used a BSS138 based board (https://www.sparkfun.com/products/12009) on my...
  16. Replies
    14
    Views
    867

    well I found this particular issue. This week I...

    well I found this particular issue. This week I added serial midi with 5 pin din. I had been using just usb until now. I was working on another area in my project and of course neglected to test all...
  17. Replies
    14
    Views
    867

    Well I got it to complie. But I am still having a...

    Well I got it to complie. But I am still having a slow down. I have isolated to one section of my project, wading through now.
  18. Replies
    14
    Views
    867

    got it..... Looked at the new examples for...

    got it.....

    Looked at the new examples for SD....... SdFat_Usage.ino

    needed to update:


    SD.begin

    to
  19. Replies
    14
    Views
    867

    I removed C:\Program Files...

    I removed C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SdFat


    //------------------------------------------------------------------------ includes

    #include <WS2812Serial.h>...
  20. Replies
    14
    Views
    867

    I think Paul is on the right track here......

    I think Paul is on the right track here... "overlapping MPU regions" Since working with WS2812Serial and DMA I have been seeing some weird things happen. memory getting overwritten where it shouldnt...
  21. Replies
    14
    Views
    867

    can of worms! So I have done a full fresh install...

    can of worms! So I have done a full fresh install of the latest arduino IDE, teensyduino......

    here are my includes:


    ...
  22. Replies
    14
    Views
    867

    fileSystem: In function 'void saveConfigToSD()':...

    fileSystem: In function 'void saveConfigToSD()':
    fileSystem:1135: error: 'File' was not declared in this scope
    File sdfile; // File...
  23. Replies
    14
    Views
    867

    ah, I will check that right now...

    ah, I will check that right now...
  24. Replies
    14
    Views
    867

    4.1 with 8meg EXTRAM upgrade. I have had these...

    4.1 with 8meg EXTRAM upgrade. I have had these odd moments throughout the last 4 months of developing this code. sometimes it just hits these lags, I continue and it goes away. I am reaching a point...
  25. Replies
    14
    Views
    867

    debugging.......

    looking for pointers....

    So I have a project that has got pretty large.

    Apart from Serial.print to dump out debug info, how can I get more insight into what is going on in my program. As I code...
  26. Replies
    2
    Views
    256

    thanks Paul, I will look closer at the library..

    thanks Paul, I will look closer at the library..
  27. Replies
    2
    Views
    256

    WS2812Serial brigtness

    using WS2812Serial, is it possible to set brightness on an individual pixel?
  28. Replies
    7
    Views
    562

    yes, its all a bit unclear... lets try to recap...

    yes, its all a bit unclear... lets try to recap and ignore any mention of midi, music or quantise.....

    I think odsons answer #5 has it, but I was wondering if there is another approach.

    I have...
  29. Replies
    7
    Views
    562

    no, the intervals in the array define the note...

    no, the intervals in the array define the note from the root. its all semitones. I have a full definition of arrays in place and already have it working in other scenarios where my sytem is just...
  30. Replies
    7
    Views
    562

    caveat: some of my interval arrays could be up to...

    caveat: some of my interval arrays could be up to 12 entries, some might be 5.
  31. Replies
    7
    Views
    562

    quantise midi note data

    My midi sequencer project....

    I have a function that generates numbers. I need to "quantise" these numbers to the nearest number that fits a desired scale.

    example of the array that holds the...
  32. yes, this is kind of what I am doing but without...

    yes, this is kind of what I am doing but without all the expense of calculating a hash.
  33. well after a tense evening and a fruitfull...

    well after a tense evening and a fruitfull morning, I decided I had to roll my own. This is what I came up with, it seems to do the job niceley. I can see how on a larger grid this approach would...
  34. yeah, this is what I am trying to avoid.... Hence...

    yeah, this is what I am trying to avoid.... Hence my thinking that taking the whole array[][] as a single block of memory, poping that value into the temp array and doing the comparison on that is...
  35. no i need to compare the whole thing - it...

    no i need to compare the whole thing - it represents the game which is being displayed on a 8*32 neopixel panel.....
  36. ok, I am running a game of life program and...

    ok, I am running a game of life program and trying to detect when it gets stuck. I already have it resetting fine when it run out of moves, that was trivial. The issue is it can get stuck in a...
  37. ok, so lookng closer at memcmp(), is it as simple...

    ok, so lookng closer at memcmp(), is it as simple as this?




    int compare;

    arrayTemp[i] = (byte) array;

    i++;
  38. read a multidimensional array as an integer only for comparison

    I posted this question earlier on Stack overflow https://stackoverflow.com/questions/68235976/c-read-a-multidimensional-array-as-an-integer-only-for-comparison



    UPDATE: Considerations: this is...
  39. I just sent you a PM

    I just sent you a PM
  40. _drummer:62: error: use of deleted function...

    _drummer:62: error: use of deleted function 'drummerLibraryDataUnion::drummerLibraryDataUnion()'
    drummerLibraryDataUnion data;
    ^
    _drummer.ino:57:15: note:...
  41. Aha! OK, I think I see it now..... will give this...

    Aha! OK, I think I see it now..... will give this a go right now!
  42. im guessing this: typedef union...

    im guessing this:



    typedef union drummerLibraryDataUnion {
    drummerLibraryStruct structure;
    uint8_t structureSaveAndLoad[ sizeOfDrummerLibraryStruct ];
    }...
  43. const int sizeOfDrummerLibraryStruct = sizeof[...

    const int sizeOfDrummerLibraryStruct = sizeof[ drummerLibraryStruct ];

    is that correct? how come [] not () after sizeof?

    I still dont see how the union references the drummer pattern struct...
  44. Sorry, I dont see it.... How does the member...

    Sorry, I dont see it.... How does the member structure relate to drummerLibraryStruct?


    typedef union drummerLibraryDataUnion {
    SlaveToMasterTransmitDataStruct structure;
    uint8_t ...
  45. Thanks pete! it now passes and runs without the...

    Thanks pete! it now passes and runs without the error. But, the data in the SD is now garbage. I will look tomorrow as its now way too late here in Scotland!
  46. update - the code is actually being written...

    update - the code is actually being written correctly it seems. The bytes look to tally up to defined patterns. So i think the issue is with the load function, which at present is only ever used...
  47. struct containing array to be stored to SD card....

    right, I have been fighting this one for a few days now....

    I have several different structs that make up the core of my project...

    here is an example of one of my structs:



    struct...
  48. Replies
    14
    Views
    732

    no the data needs to be editable. But...

    no the data needs to be editable. But PROGMEM:FLASH is a new option for me, I will look into it for placing some predefined libraries... how would I use that with a struct? I keep getting compile...
  49. Replies
    14
    Views
    732

    oh.... wel that scuppers my plan.... ok. So I can...

    oh.... wel that scuppers my plan.... ok. So I can allocate the memory in the PSRAM but i need to then initialise the data during runtime, setup for example.....

    OK. my issue is im running out of...
  50. Replies
    14
    Views
    732

    So I now have some 8meg PSRAM modules. I have...

    So I now have some 8meg PSRAM modules. I have soldered one to a new 4.1, all good. memory test succesful and I seem to be able to store to it in the following way:


    const EXTMEM char...
Results 1 to 50 of 61
Page 1 of 2 1 2