Author |
Message |
Topic: Timer0 configured with Project Wizard not working properly |
cleberalbert
Replies: 6
Views: 14199
|
Forum: General CCS C Discussion Posted: Wed Aug 24, 2016 3:08 pm Subject: Timer0 configured with Project Wizard not working properly |
Tks for replying!!
I can see my solution is not the best or even not elegant, but honestly I prefer try to adapt my old code for PIC16F676 to PIC16F627A because it would be faster than pause and tr ... |
Topic: Timer0 configured with Project Wizard not working properly |
cleberalbert
Replies: 6
Views: 14199
|
Forum: General CCS C Discussion Posted: Wed Aug 24, 2016 12:42 pm Subject: Timer0 configured with Project Wizard not working properly |
I'm sorry but my objective is just quite a bit deeper than I said previously. The code I posted was just a pseudo-prototype to try to be more simple and easy to understand. But will give more details: ... |
Topic: Timer0 configured with Project Wizard not working properly |
cleberalbert
Replies: 6
Views: 14199
|
Forum: General CCS C Discussion Posted: Wed Aug 24, 2016 7:44 am Subject: Timer0 configured with Project Wizard not working properly |
Hello all!
I'm trying to implement a timer0 interruption using PIC16F627A but it doesn't seem to work as I expect to.
I expected to get a signal with period of 4ms (1ms high + 3ms low)
But actu ... |
Topic: Rotate pieces of code for each timer0 overflow |
cleberalbert
Replies: 7
Views: 15043
|
Forum: General CCS C Discussion Posted: Tue Aug 02, 2016 8:08 am Subject: Rotate pieces of code for each timer0 overflow |
I got it! I'm rotating the blocks through a global variable to count how many overflow has already happened. I had tried it before and didn't work but it may be some mistake. Now is working : :
... |
Topic: Rotate pieces of code for each timer0 overflow |
cleberalbert
Replies: 7
Views: 15043
|
Forum: General CCS C Discussion Posted: Tue Aug 02, 2016 7:46 am Subject: Rotate pieces of code for each timer0 overflow |
Hello all!!
I'm using timer0 interruption to perform 4 actions (4 code blocks in the same interrupt service routine), but I want to execute only 1 action (1 block) for each timer0 overflow in order ... |
Topic: Why the I2C communication fails after delete a printf? Bug? |
cleberalbert
Replies: 10
Views: 16406
|
Forum: General CCS C Discussion Posted: Thu Jul 31, 2014 2:56 pm Subject: Why the I2C communication fails after delete a printf? Bug? |
Thanks very much! It works now...
To who needs, I posted in the Code Library:
http://www.ccsinfo.com/forum/viewtopic.php?p=189386#189386
This program is to provide 16 bits I2C communication be ... |
Topic: 16 bits I2C communication between 2 PICs 18F |
cleberalbert
Replies: 2
Views: 38186
|
Forum: Code Library Posted: Thu Jul 31, 2014 2:51 pm Subject: 16 bits I2C communication between 2 PICs 18F |
This program is to provide 16 bits I2C communication between 2 PICs 18F. The code was done on CCS 5.018, it's commented and working. Tested with PIC18F4520.
Master.c
#include <18f4520.h>
... |
Topic: Why the I2C communication fails after delete a printf? Bug? |
cleberalbert
Replies: 10
Views: 16406
|
Forum: General CCS C Discussion Posted: Thu Jul 31, 2014 1:16 am Subject: Why the I2C communication fails after delete a printf? Bug? |
Hi Sirs, I hope you can help me again!
I started to make changes using CCS functions but now I've no idea why the slave code isnt working yet. The return of the i2c_isr_state function is always 0, ... |
Topic: Why the I2C communication fails after delete a printf? Bug? |
cleberalbert
Replies: 10
Views: 16406
|
Forum: General CCS C Discussion Posted: Tue Jul 29, 2014 10:21 pm Subject: Why the I2C communication fails after delete a printf? Bug? |
PCM programmer and Ttelmah,
Thanks very much for the answers. They are valuable!
So I understood the best way to start is cleaning up my code by using CCS functions. I'll do it right now! |
Topic: Why the I2C communication fails after delete a printf? Bug? |
cleberalbert
Replies: 10
Views: 16406
|
Forum: General CCS C Discussion Posted: Tue Jul 29, 2014 12:07 pm Subject: Why the I2C communication fails after delete a printf? Bug? |
PCM programmer, Thank you very much! I changed for a delay and now it's working fine.
Ttelmah, I saw. ACKSTAT is an acknowledge status bit and it's loaded with 6 bits. so I should change:
it:
i ... |
Topic: Why the I2C communication fails after delete a printf? Bug? |
cleberalbert
Replies: 10
Views: 16406
|
Forum: General CCS C Discussion Posted: Mon Jul 28, 2014 9:32 pm Subject: Why the I2C communication fails after delete a printf? Bug? |
Hi all!
I'm dizzy about it! After I delete a "printf" my program stops working fine...May be a bug?
These are the 2 printfs. I can only delete 1 of them because if I delete both the I2 ... |
Topic: Why are shown the 8 least significant bits if it's an int16? |
cleberalbert
Replies: 2
Views: 6305
|
Forum: General CCS C Discussion Posted: Sun Jul 27, 2014 11:06 pm Subject: Why are shown the 8 least significant bits if it's an int16? |
Programador PCM, Thanks!!
You made me see that the most signification bits are in another case of the switch! I had no paid attention about that. Now I make an int16 by make16 function. As soon as ... |
Topic: Why are shown the 8 least significant bits if it's an int16? |
cleberalbert
Replies: 2
Views: 6305
|
Forum: General CCS C Discussion Posted: Sun Jul 27, 2014 6:13 pm Subject: Why are shown the 8 least significant bits if it's an int16? |
Hi all!
Could someone help me with this little problem? I'm trying to show an int16 data but are shown only the 8 least significant bits.
Explaining all:
I've 2 PICs which they interact each othe ... |
Topic: How to start programming with PIC16F88 by PCWHD 5.018? |
cleberalbert
Replies: 3
Views: 6326
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2014 11:59 am Subject: How to start programming with PIC16F88 by PCWHD 5.018? |
Thanks! There is! Now I only must write #include<16F88.h>
but soon im going to use the PIC32MX460F512L, it is 32bits and the PIC32MX460F512L.h file doesnt exist in the PICC directory. have a ... |
Topic: How to start programming with PIC16F88 by PCWHD 5.018? |
cleberalbert
Replies: 3
Views: 6326
|
Forum: General CCS C Discussion Posted: Wed Apr 23, 2014 6:32 pm Subject: How to start programming with PIC16F88 by PCWHD 5.018? |
Hi!!
I've tried to start a project with PIC16F88 by PCWHD 5.018 but when I'm setting up the "Project Wizard" I select the PIC16 family but I dont find the PIC16F88 device. I think there i ... |
|