Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Effect of DT_INT14 on Serin2 or DebugIn

    My understanding is Interrupts interrupt software based serial routines like Serin2 and break them..
    Have I missed something? I can't use hardware serial in this application due to pinout...
  2. Re: Effect of DT_INT14 on Serin2 or DebugIn

    Just resurrecting this. I'm using an 18F2620/80 chip.

    Let's assume I must use serin2 and serout2 for some serial stuff so can't use DT interrupts to create a timer.

    How can I implement a...
  3. Replies
    12
    Views
    1,299

    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...
  4. Replies
    17
    Views
    1,920

    Re: Multiplexer address control..

    Yes thanks, but how to step through the options in the most efficient way without disturbing ports B0-3
  5. Replies
    12
    Views
    1,299

    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...
  6. Replies
    17
    Views
    1,920

    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...
  7. Replies
    2
    Views
    811

    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...
  8. Replies
    2
    Views
    811

    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 :?
  9. Replies
    2
    Views
    811

    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...
  10. Replies
    6
    Views
    1,451

    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
    ...
  11. Replies
    6
    Views
    1,451

    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.
    ...
  12. Replies
    2
    Views
    905

    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 ...
  13. Replies
    2
    Views
    905

    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...
  14. Replies
    0
    Views
    671

    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......
  15. Replies
    2
    Views
    1,048

    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...
  16. Thread: Osctune

    by retepsnikrep
    Replies
    35
    Views
    13,799

    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...
  17. Thread: Osctune

    by retepsnikrep
    Replies
    35
    Views
    13,799

    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...
  18. Thread: Osctune

    by retepsnikrep
    Replies
    35
    Views
    13,799

    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...
  19. Thread: Osctune

    by retepsnikrep
    Replies
    35
    Views
    13,799

    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...
  20. 18F2620 32mhz pll and Timer1 250ms ticks

    I think i have configured my 18F2620 to run at 32mhz. Prev 8mhz and timer1 4hz ticks no problem.

    Now i'm after Timer1 interrupting every 250ms with clock running at 32mhz..

    Using mister e's...
  21. Replies
    33
    Views
    19,959

    Re: pbp 3 and MPLAB X

    I agree with Henrik.. I just use what was given.. MCSP: crashes on my systems as well, especially when copying and pasting stuff..
  22. Replies
    4
    Views
    1,802

    VFD Display Brightness & Lcdout

    I have an 44780 compatible display but the brightness control is a little strange.

    It requires the RS line to be 1 when sending the brightness commands and LCDOUT seems to always be 0 sending...
  23. Replies
    2
    Views
    1,304

    Re: Help with multiple SPWM

    I've managed to fix it, appears I had not disabled the Adc and the analog inputs and they were somehow causing issues.
  24. Replies
    2
    Views
    1,304

    Help with multiple SPWM

    I have the below program and want it to generate the following pwm signals.

    1) 2khz HPWM this is working fine as shown by scope.
    2) 25hz 50% duty SPWM this is working fine as shown by scope.
    3)...
  25. Re: Measuring a variable freq/length pulse and generating more pulses.

    The PLL looks like a good/interesting idea.

    If we had one good signal I assume you could feed that into two PPL circuits to provide the other two outputs 20 and 40 degrees offset from the original...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4