Search:

Type: Posts; User: retepsnikrep; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    2,036

    Re: Confused by Arraywrite

    Sorry my data is not constant, it's loads of variables etc etc the "*" were just to fill the line..
  2. Replies
    15
    Views
    2,036

    Re: Confused by Arraywrite

    Arraywrite still confuses me and so do my test compilation results.
    Wildly varying memory usage on this simple test program below.. ?
    Can anyone explain it..



    '4 x ArrayWrite Test 090519. ...
  3. Replies
    9
    Views
    944

    Re: 18F66K80 adc

    That's what i'm trying to do but am stuck with the adc register settings.. ;)
  4. Replies
    9
    Views
    944

    Re: 18F66K80 adc

    I want too understand how to set the registers directly.
    The PBPRO manual does state that the ADC defines can't cater for all chip types or scenarios etc and that some pics resist them..
  5. Replies
    9
    Views
    944

    Re: 18F66K80 adc

    I don't really want to use defines but i might have too.
  6. Replies
    9
    Views
    944

    18F66K80 adc

    OK i'm confused by the 12 bit adc register settings.. I've got the pic adc working but is it optimal?
    I'm trying to avoid using defines but am using adcin...

    Processor is running at 64mhz

    My...
  7. Re: Elapsed timer not working as expected at 64MHz

    Ok i think i have fixed it.

    In my 1ms interrupt I was sending a byte using HSEROUT at 9600 baud.
    As it interrupted every 1ms sometimes HSEROUT wasnt ready the next time, so it caused a delay...
  8. Re: Elapsed timer not working as expected at 64MHz

    Sorry to resurrect this thread. I have read all the posts but am still confused.

    I'm struggling to get my DT_elapsed timer 1ms interrupt working at the correct frequency when running at 64mhz...
  9. Replies
    15
    Views
    2,036

    Re: Confused by Arraywrite

    basically I have a 1ms interrupt going on.

    I want this to check a buffer for stuff waiting to be sent to the screen, and if stuff waiting then send it via Hserout one chr at a time.

    OK so...
  10. Replies
    17
    Views
    2,342

    Re: Multiplexer address control..

    Yes thanks, but how to step through the options in the most efficient way without disturbing ports B0-3
  11. Replies
    15
    Views
    2,036

    Confused by Arraywrite

    I've looked at the examples and posts on here and they are helpful but.....

    OK I have a 38x25 display.
    I can talk to it using hserout and have a 1ms interrupt running so want to send it 1...
  12. Replies
    17
    Views
    2,342

    Multiplexer address control..

    I have a HTC4067 16x1 multiplexer, it's controlled by four lines S0, S1, S2, S3
    I have these all connected to Port B pins 4,5,6,7 respectively on my pic. This could be reversed to 7,6,5,4 if that...
  13. Replies
    2
    Views
    1,084

    Re: 26K80 Configuration and Port C 0, 1

    Apologies. Operator error.
    Just realised the 18F26K80 is not pin compatible with the 18F2680.
    It has extra power pins and requires extra decoupling caps blah blah..
    Never assume anything.. This...
  14. Replies
    2
    Views
    1,084

    Re: 26K80 Configuration and Port C 0, 1

    It is now displaying stuff on the screen but all garbled and it feels like the clock is running at the wrong speed.



    It should be running at 32mhz :?
  15. Replies
    2
    Views
    1,084

    26K80 Configuration and Port C 0, 1

    I'm moving from a 2680 to 26K80.
    The LCD in my 2680 code does not now work in the 26K80 code.

    I know this is related to port C 0,1 and a new function in the 26K80 SOSCEL

    I am trying to disable...
  16. Replies
    6
    Views
    1,858

    Re: Decoding serial data bytes and nibbles.

    Thanks to all your help.

    I ended up using this bit but it's still boggling my mind a bit as to how it actually works.



    for d=0 to 4
    dataword[d*2]=inbuff[d*3]*16+inbuff[d*3+1]>>4
    ...
  17. Replies
    6
    Views
    1,858

    Decoding serial data bytes and nibbles.

    I have a hex serial 15 byte data stream in a byte array.

    ED,1E,D2,EF,2E,D3,ED,2E,D2,EF,2E,D3,ED,1E,D2,

    It needs to be chopped up into 10 x 12 bit data blocks as below.
    ...
  18. Replies
    2
    Views
    1,102

    Re: DT Elapsed Timer

    OK that's great thanks but i'm now struggling to calculate the constant for a 32mhz pic.

    If OSC == 32
    TimerConst = 063C3h ?????
    EndIF

    I tried mister e-calculator and it suggested 45537 ...
  19. Replies
    2
    Views
    1,102

    DT Elapsed Timer

    I'm confused and having trouble finding the relevant/latest files to implement the Elapsed timer on my 18F2620 running at 32mhz.

    It appears DT Elapsed timer went through several updates but i...
  20. Replies
    0
    Views
    749

    CANBUS Stuff

    Are there any other CANBUS hopefuls on here or any more recent examples than in the archives.
    There is not much CANBUS stuff and a lot is very old.

    I'm using a 18F2680 and MCP2551 transceiver......
  21. Replies
    2
    Views
    1,133

    Testing Bits in variables..

    Am I missing something here? I have a declared word variable and byte variable.
    Why can't I test bits in the word variable using the byte variable as the pointer?

    Count1 being 0-9 in this...
  22. Thread: Osctune

    by retepsnikrep
    Replies
    35
    Views
    14,218

    Re: Osctune

    Closure on my problem. I found the reciever i was using wanted idle low data not idle high... Arrrggggg.. I was sure it was high..

    Thanks for the advice. The transmitter was working correctly...
  23. Thread: Osctune

    by retepsnikrep
    Replies
    35
    Views
    14,218

    Re: Osctune

    I'm measuring using Saleae Logic software.
    It reports the values I mentioned when using autobaud to detect the rate.

    https://www.saleae.com/downloads.

    I used to have this working but the...
  24. Thread: Osctune

    by retepsnikrep
    Replies
    35
    Views
    14,218

    Re: Osctune

    I tried another pic that produced exactly the same results

    The pic is transmitting data correctly but when checked with my logic probe I can see the baud rate is off.

    At 38400 it is actually...
  25. Thread: Osctune

    by retepsnikrep
    Replies
    35
    Views
    14,218

    Re: Osctune

    18F2620 hserout baud rates off consistently.

    I'm using hserout to send data to a PC running the old plx-daq excel data acquisition macro/control.
    It's worked in the past but i haven't used it...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4