Search:

Type: Posts; User: xldaedalus

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Ok, I think the problem is solved - in a way.

    This was in my config settings.

    PBADEN=OFF ' PORTB<5:0> pins configured on reset


    PWRTEN=On ' Power-up Timer Enabled
    BOREN=On '...
  2. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Still struggling with this strange problem. I put buffer variables in the declares to prevent array over runs change the variables value. I triple buffered the PORTx read value. Still, at seeminly...
  3. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Well, I think I solved part of the problem anyway.

    In my project, I was forced to use the OLED as 3 wire SPI. This meant sending 9 bit SPI packets. I had to do this by bit banging the 9th bit...
  4. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Well, time to fail is all over the place, and the symptoms of the "freeze" are all over the place.



    Hahaha! You and me both! Its a lot of extra typing! I name my variable with Capital but...
  5. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Sorry to say, ISIS did NOT find the bug. Its still there. I did a bad job of explaining. Forgive for my poor typing skills. I'm partly dyslexic, so I often see words that aren't there because I...
  6. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Thanks. It didn't make a different, besides if the RAM stack was filling up by bad code, a bigger stack would just take longer to fill up. It would just take longer to crash. I put LED traps in...
  7. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Maybe the compiler has changed. I always add a

    Declare Stack_Size 20

    at the top of my program because I thought it created 20 bytes of RAM for passing variables back and forth for doing...
  8. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    I now this the problem is that, somehow the values in RAM are switched somehow, something suddenly puts them out of order

    PortBstate = PORTB 'PUT action store value to RAM address PortBstate

    ...
  9. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    On the 18F46k22 pin 12 is NC, pin 31 is the CS pin for SPI and 32 is a logic pin. Pin 11 has a 1uF cap on it. I assume you mean me to use bypass caps on all of the power pins of the chip. Yes, I...
  10. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Well, for what its worth, there does now seem to be a change, not sure whether related to adding the debouce caps to the switches or changes to ANSELB / ANSELE.

    The buttons seem to work, without...
  11. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    attached is a PDF of the relevant circuitry, its more or less standard switch circuitry. Active low, PORTB should return 1 is switch is not pressed. 0 if it is pressed.

    3565
  12. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    I checked all PORTB interactions. There are none. No writes, not other checks. As I mentioned, RB0 is wired to be a overcurrent interrupt on change INT0, but that code is currently commented out. ...
  13. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Don't know how the space got between the % and 00011110

    Current code attempting:

    If PortBswCheck = 0 Then 'check switch every so often
    OldPortBstate = PORTB
    PortBswCheck = 1
    GoTo...
  14. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    I'm sorry. My circuit is using an 18F46k22. The 18F26k22 doesn't have a PORTE. I apologize for any confusion. I use the 18F26k22 in 4 or 5 other devices, so, its on my brain.

    The 3 main...
  15. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    The GIE = False (0) and GIE = True (1) are there to prevent the code from being interrupted. It doesn't see to work anyway, but it isn't the problem.

    As suggested, it is possible something...
  16. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    PortBswCheck increments from 255 to 0. When it has tried to read the switch 256 times, I try to reset the internal PORTB latch with a bunch of different code. You see, the switch code works...
  17. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    As I explained, I was trying everything I could think of to fix the problem. The code isn't the problem, because, as show, it works just fine. The problem is something, somehow to freeze the lower...
  18. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    Thank you, Stephen. There are 15,000 lines in the program, I can' post it all, it would be very hard to understand. GIE is not aliased. It is only there because I thought if I stopped this section...
  19. Replies
    36
    Views
    37

    [SOLVED !] Re: Mysterious PORTB problem

    I'm not sure how. The PICKIT programmer is attached, but not doing anything, so, electrically speaking those two pins are slightly different than the others. I tried it without the programmer...
  20. Replies
    36
    Views
    37

    [SOLVED !] Mysterious PORTB problem

    I'm using Proton+ to develop firmware for a product with switches. The MCU is an 18F26K22. Most of the switches reside on PORTB. I am NOT using a PORTB interrupt on change, but I am checking the...
  21. Replies
    7
    Views
    8

    Re: Coming out of an ISR

    Sorry! I fixed the problem, and it wasn't exactly an ISR error.

    In restarting the code for a new DMX frame, I added

    SPEN1 = False
    NOP
    SPEN1 = True

    When I commented this out, the problem...
  22. Replies
    7
    Views
    8

    Re: Coming out of an ISR

    I have a related problem, and don't know how to fix it. I'm using an 18F46k22 at 32mHz with PLL. I have a serial port constantly receiving bytes from a DMX source. I'm using Les' new >255 arrays. ...
  23. Replies
    11
    Views
    2,433

    Re: PP_FRF not found

    I've moved all the CDATA declares to the end. I've commented out the includes, then commented out the CDATA declares. I tried LDATA and LREAD8. Only once did it produce an .asm file, which had...
  24. Replies
    11
    Views
    2,433

    Re: PP_FRF not found

    FYI

    I placed the following CDATA line at the point in the code immediately following the CONTEXT RESTORE of the InterruptLow. This is the same location where my subroutines start:
    ...
  25. Replies
    11
    Views
    2,433

    Re: PP_FRF not found

    I'm getting the same error. Specifically "_PP_FRF". This implies some post compiler error. The Compiler never goes beyond Pass 2.

    What was the final solution? My code has 11,000 lines - too...
  26. Re: How to program a 18F45K40 with a PICKIT3?

    Don't know if you found a solution, but I love Pickit2. I've been using Pickit3 running the Pickit2 standalone scripting software adapted to Pickit3. It works just like Pickit2. The problem you...
  27. Re: Power switching through p-channel MOSFET

    Each Load Cell should have its own voltage regulator for precise reading of the ADC. Depending on the distance between load cells, voltage drop will be a bigger problem than the RDSon of the MOSFET....
  28. Replies
    13
    Views
    14

    [SOLVED !] Re: Front Loader Freeze - compiler fails

    Worked perfect. When I opened the file in FileLine, it said something about replacing non-ascii characters with spaces. Then tried to compile. Same problem. When I open the file in Notepad, turn...
  29. Replies
    14
    Views
    15

    [SOLVED !] Re: Pre-Defining Variables

    Les, you've done an amazing job with Proton and Proton24. As I can imagine, for a relatively small reward. I don't know much about PIC32, but MicroChip bought Atmel for good reason. In the 8bit...
  30. Replies
    14
    Views
    15

    [SOLVED !] Re: Pre-Defining Variables

    I would tend to agree with Les. There is no magic wand. I don't use C because for what I do, it seems like overkill. And in my 13 years experience with Proton, there are only a couple of things I...
  31. Replies
    14
    Views
    15

    [SOLVED !] Re: Pre-Defining Variables

    I makes sense to me, because its how C works, and one thing that makes C easier to port and re-use. As it is now, I define "local" variables inside of a subroutine. I use a small stack to pass...
  32. Replies
    13
    Views
    14

    [SOLVED !] Re: Front Loader Freeze - compiler fails

    Thanks for your patience and understanding, Les. PM me with your requirements and I'll send you the code.

    Lee
  33. Replies
    13
    Views
    14

    [SOLVED !] Re: Front Loader Freeze - compiler fails

    Sorry to take so long to respond. I was operating on a few hours sleep getting to the convention, and getting through it. Then I had to catch up on sleep. I haven't even thought about the problem...
  34. Replies
    13
    Views
    14

    [SOLVED !] Re: Front Loader Freeze - compiler fails

    Thanks, John, and thanks for taking the time to respond. I rebuilt the file, from a previous, and re-worked all the bugs and changes. I'm back close to where I was.

    However, I had to uninstall...
  35. Replies
    13
    Views
    14

    [SOLVED !] Re: Front Loader Freeze - compiler fails

    I tried FINE LINE IDE which takes out some non-ASCII text. Still no joy. Had to go to my last known save version. It compiles fine. When the show is over, I'll do a file compare and see what...
Results 1 to 35 of 100
Page 1 of 3 1 2 3