Quantcast
Channel: PIC24, what's wrong with my program?
Browsing all 18 articles
Browse latest View live

PIC24, what's wrong with my program? (Cypress)

This program is based on code kelvinu posted in another thread.  I cannot get the interrupt/pin toggle to work, and I don't have enough assembly experience to identify the problem.  The code below is...

View Article



Re: PIC24, what's wrong with my program? (Ian.M)

While its generally a bad idea to start a new thread for the same problem, if you cant post code in the original thread, you don't have a lot of choice.   Hopefully you wont have to do it again till...

View Article

Re: PIC24, what's wrong with my program? (ric)

How is it meant to get to your main code loop?Your startup code runs straight into your interrupt code/ 

View Article

Re: PIC24, what's wrong with my program? (Cypress)

ricHow is it meant to get to your main code loop?Your startup code runs straight into your interrupt code/ ric, I had placed the loop just below the "BCLR TRISB,#6" before the timer setup, but that...

View Article

Re: PIC24, what's wrong with my program? (ric)

I have never programmed a PIC24 chip, but a quick glance in the PIC24 datasheet tells me you have left out a LOT of code required to make interrupts work correctly.Are you really sure you want to dive...

View Article


Re: PIC24, what's wrong with my program? (maxruben)

CypressThis program is based on code kelvinu posted in another thread.  I cannot get the interrupt/pin toggle to work, and I don't have enough assembly experience to identify the problem.Why not just...

View Article

Re: PIC24, what's wrong with my program? (newfound)

Your reset code runs straight into your ISR that will return to where when that happens? Your Loop is not going to be reached/executed except by some improbable luck. Move the ISR out of your main code...

View Article

Re: PIC24, what's wrong with my program? (kelvinu)

.include  "xc.inc"                .bssintcounter:     .space    2                .text.global __reset              .global __T1Interrupt   __reset:    BCLR TRISB, #5    BCLR TRISB,...

View Article


Re: PIC24, what's wrong with my program? (kelvinu)

The forum does not like the word "dec lare" without the space ! This works on the simulator as is. cut from one of my projects.  It flashes an led at 1hz  ;led-flash v1.0 (c)K.Unsworth 30-08-2014;;for...

View Article


PIC24, what's wrong with my program? (Cypress)

This program is based on code kelvinu posted in another thread.  I cannot get the interrupt/pin toggle to work, and I don't have enough assembly experience to identify the problem.  The code below is...

View Article

Re: PIC24, what's wrong with my program? (Ian.M)

While its generally a bad idea to start a new thread for the same problem, if you cant post code in the original thread, you don't have a lot of choice.   Hopefully you wont have to do it again till...

View Article

Re: PIC24, what's wrong with my program? (ric)

How is it meant to get to your main code loop?Your startup code runs straight into your interrupt code/ 

View Article

Re: PIC24, what's wrong with my program? (Cypress)

ricHow is it meant to get to your main code loop?Your startup code runs straight into your interrupt code/ ric, I had placed the loop just below the "BCLR TRISB,#6" before the timer setup, but that...

View Article


Re: PIC24, what's wrong with my program? (ric)

I have never programmed a PIC24 chip, but a quick glance in the PIC24 datasheet tells me you have left out a LOT of code required to make interrupts work correctly.Are you really sure you want to dive...

View Article

Re: PIC24, what's wrong with my program? (maxruben)

CypressThis program is based on code kelvinu posted in another thread.  I cannot get the interrupt/pin toggle to work, and I don't have enough assembly experience to identify the problem.Why not just...

View Article


Re: PIC24, what's wrong with my program? (newfound)

Your reset code runs straight into your ISR that will return to where when that happens? Your Loop is not going to be reached/executed except by some improbable luck. Move the ISR out of your main code...

View Article

Re: PIC24, what's wrong with my program? (kelvinu)

.include  "xc.inc"                .bssintcounter:     .space    2                .text.global __reset              .global __T1Interrupt   __reset:    BCLR TRISB, #5    BCLR TRISB,...

View Article


Re: PIC24, what's wrong with my program? (kelvinu)

The forum does not like the word "dec lare" without the space ! This works on the simulator as is. cut from one of my projects.  It flashes an led at 1hz  ;led-flash v1.0 (c)K.Unsworth 30-08-2014;;for...

View Article
Browsing all 18 articles
Browse latest View live




Latest Images