Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    6,288

    Re: Strange behavior on PORTB on a PIC18F26K20

    Try this. Use LAT instead of PORT for outputs. Inputs must use PORT!

    Tim.


    '****************************************************************
    '* Name : 18F26K20test.PBP ...
  2. Thread: One line IF

    by timmers
    Replies
    3
    Views
    3,119

    Re: One line IF

    ... unless you request a GOSUB.

    IF condition = true THEN GOSUB subroutine
  3. Replies
    2
    Views
    2,547

    Is there a neater way to do this

    I am revising some old code and was wondering if there was an easier way to do this

    PARAM1 VAR WORD
    PARAM2 VAR WORD
    COMMAND VAR BYTE
    TX_BUFF VAR BYTE [20]
    LEN VAR BYTE

    Old code
  4. Replies
    21
    Views
    36,948

    Re: Micro Code Studio Crashing

    ...crashed again.
    Thats it I am going to look at Fineline again.

    Tim.


    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: CodeStudio.exe
    Application Version: 4.0.0.0
  5. Replies
    21
    Views
    36,948

    Re: Micro Code Studio Crashing

    I have to say, normally MCS is stable and I rarely get problems, but this job I'm on is currently compiling at 52k bytes and growing.
    I may have to re-visit Norm's Fineline if it persists.

    Tim.
  6. Replies
    21
    Views
    36,948

    Micro Code Studio Crashing

    Grrr. MCS keeps crashing. Any suggestions where to start looking?

    Error report says-

    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: CodeStudio.exe
    Application...
  7. Replies
    0
    Views
    1,628

    Double PID Loop?

    I have a motor with encoder and am servicing the PID loop at regular intervals continuosly.
    To get a more accurate regulation, I wish to take the last 8 samples and compare them to an 8 times...
  8. Replies
    9
    Views
    5,487

    Re: Compiling using PBP mode causes funnies

    Hi Henrik,

    Yes identical hardware, it just looks like PBP runs faster than PBPL!

    Tim.
  9. Replies
    9
    Views
    5,487

    Re: Compiling using PBP mode causes funnies

    Update:

    The PIC is sending the correct data on the TX pin with both compilations.
    The problem is in the RS485 Tx enable line.
    With PBPL, the PIC sends data out and after a 2mS delay, sets the...
  10. Replies
    9
    Views
    5,487

    Re: Compiling using PBP mode causes funnies

    Thanks for the responses, the typical values that exhibit a problem are

    HEAD_OUT = 101
    FUNC_OUT = 38
    PAN_OUT = 0
    TILT_OUT = 0
    ZOOM_OUT = 1
    FOCUS_OUT = 6

    ERROR_OUT should calculate as 109...
  11. Replies
    9
    Views
    5,487

    Compiling using PBP mode causes funnies

    When I compile a programme using PBPL, our product works absolutely fine. However, when I compile using PBP the product messes around and sends an incorrect checksum.
    The programme does not use...
  12. Replies
    0
    Views
    1,559

    Basic code into an FPGA

    I am curious, Is there a way to put Basic code into HDL for an FPGA?
  13. Re: Customers Performing Own Upgrades. How Hard Can It Be?

    Thanks for your comments. The security aspect is concerning and I haven't decided yet on how to protect my hex files.

    I think the next step is to connect my data reader to the RX TX lines and...
  14. Re: Customers Performing Own Upgrades. How Hard Can It Be?

    Eventually we would use it in future products requiring customer upgrades. At present it's a return to base upgrade.
    I would like to get the *6K22 working first!
  15. Re: Customers Performing Own Upgrades. How Hard Can It Be?

    We use the 18F26K22 / 46K22's because they have two serial ports and are backwards compatible with the 16F876/877 which we used to use. (albeit the analogue/digital configuration has to change)
    The...
  16. Re: Customers Performing Own Upgrades. How Hard Can It Be?

    - Legacy with older products!
    We use the 18F*6K22 and 18F*431 almost exclusively. If we were starting afresh, then we probably would use a built in USB port.
  17. Customers Performing Own Upgrades. How Hard Can It Be?

    I want to design into future products the ability for a customer to connect their product to a PC and run a upgrade file which re-programmes the product.

    Having looked at the bootloader method, I...
  18. Replies
    2
    Views
    1,928

    Re: Serial monitor required. Suggestions please.

    One Logic16 ordered.
    Thankyou Henrik.
  19. Replies
    2
    Views
    1,928

    Serial monitor required. Suggestions please.

    Suggestions please for a serial monitor that can help me debug a project running at 562k5 baud (no it's not a typo 562,500 baud) with mixed parity.
    I have an 18F26K22 communicating most of the time,...
  20. Replies
    1
    Views
    1,667

    Re: serin timout not going to correct lable

    Is the data input line (RX) idling low (9600 baud, inverted)? If not then then it will never time out!
  21. Re: Winstar OLED Display Problem with lcdout comands

    Make sure you leave enough time at power up for the LCD to initialise, typically atleast 500mS. The Oled displays are alot quicker to react and I found the following defines worked ok
    DEFINE...
  22. Replies
    5
    Views
    3,064

    Re: Question regarding hardware serial and GPIO

    When you enable SPEN it takes over both pins as you suspected.
  23. Replies
    41
    Views
    46,443

    Re: Multiple PICs on usart network

    Attached is a pdf schematic similar to Jose P's posting, but halving the number of transistors per channel.
    Also need to add a TX BUSY bus to prevent collision. (Hold to ground when transmitting,...
  24. Replies
    5
    Views
    5,065

    Re: PIC16F versus PIC16LF Parts

    I've had many problems with EEPROM write errors when using a 16F877 part on 3.3v power (20Mhz crystal). Worked fine at first, then deteriorated over time. Replacing with a LF part cured the problem....
  25. Replies
    55
    Views
    30,212

    Re: Motion profile generator.

    Henrik,
    We work entirely in PBP. For the top end motor control and move profiling we currently use the Maxon EPOS2 controller, but we have better control at the very slow speeds than Maxon. We are...
Results 1 to 25 of 52
Page 1 of 3 1 2 3