Software reset - What am I doing wrong?


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: Software reset - What am I doing wrong?

    I need to clear my head and rethink this. I just turned off the power up timer and it's a little better. Removing the power-up timer no longer shuts down the CAN network but my program still doesn't work. This was a significant issue because if the 18F wasn't reset before the CAN network came on line, my car would be disabled (i.e. no throttle and all warning lights illuminated.)

    I must have changed the settings along the way and forgot I did so. Let me do some more investigating as this issue is most likely caused by me. Thanks for turning on that proverbial light bulb in my head.

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: Software reset - What am I doing wrong?

    And the second problem is solved! But, it creates another issue. I use a serial LCD and when I used the HSPLL, I couldn't get the LCD to work correctly. Perhaps someone reading this thread has encountered this before.

    I'm using a 20mhz crystal. I use $4054 for the LCD speed. I defined my OSC as 20. If I use the HSPLL setting, what speed do I have to set the LCD at?

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Software reset - What am I doing wrong?

    I did not notice that...
    With the configs posted use
    DEFINE OSC 48
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: Software reset - What am I doing wrong?

    No dice. I tried using all of the prescalers from 4 to 48 but none work. By using the Define OSC 48, my program will not work. Any other adjustments you can think of?

  5. #5
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: Software reset - What am I doing wrong?

    I just ran a loop increasing the communication speed of the LCD by 1 and then displaying the speed. When I was able to read the information on the LCD, that is the speed to use. It looks like something from $40E2 to $40F6 works. I need to do a little more testing to find out if there any differences in that range. I'm not sure if this the right way to go about solving this problem but it works......for now.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts