Author |
Message |
Topic: sensor networks |
mcr1981
Replies: 28
Views: 66395
|
Forum: General CCS C Discussion Posted: Mon Oct 12, 2015 7:06 am Subject: Thanks for this code. |
I was able to communicate a master with a slave.
Could not use hardware I²C on a 18F45K22 but did it with software routines (#use I2C).
Will post the address snapshot. It's something strange:
... |
Topic: A little advice on what not to do with internal oscillator |
mcr1981
Replies: 11
Views: 16157
|
Forum: General CCS C Discussion Posted: Mon Dec 29, 2014 2:47 pm Subject: I hear you... |
Already told them that back in April 2014. Well, not that exactly like that.
Those chips were revision 4. Got new ones and now they are revision 6.
I'm just happy it works now and the CCS guys n ... |
Topic: A little advice on what not to do with internal oscillator |
mcr1981
Replies: 11
Views: 16157
|
Forum: General CCS C Discussion Posted: Sun Dec 28, 2014 5:28 pm Subject: Update.... |
I have not tried this code with the faulty oscillator since the last time.
I'm surprised to see that the new version (5.035) does provide an error if one tries to assign an invalid internal oscilla ... |
Topic: state machine |
mcr1981
Replies: 9
Views: 13812
|
Forum: General CCS C Discussion Posted: Mon Dec 01, 2014 3:04 pm Subject: A little video with code... |
It's in Spanish but you'll get the idea. Very very basic with one input and one output.
EDIT (forgot the link ):
https://www.youtube.com/watch?v=bUkG0hOof3E |
Topic: A little advice on what not to do with internal oscillator |
mcr1981
Replies: 11
Views: 16157
|
Forum: General CCS C Discussion Posted: Fri Apr 25, 2014 12:26 pm Subject: Contacted Microchip now. |
sounds like you should contact Microchip and ask for help...at least they should replace the 'bricks' for free....
jay
That's news to me. Hopefully they will resolve this issue.
Will contac ... |
Topic: A little advice on what not to do with internal oscillator |
mcr1981
Replies: 11
Views: 16157
|
Forum: General CCS C Discussion Posted: Fri Apr 25, 2014 1:27 am Subject: Thanks for the replies but.... |
Thanks for the replies.....but:
I tried reading the PIC and it returns just NOP in every line (in HEX they are all 0x00).
When I read the configuration bits it always returns code protection to ... |
Topic: A little advice on what not to do with internal oscillator |
mcr1981
Replies: 11
Views: 16157
|
Forum: General CCS C Discussion Posted: Thu Apr 24, 2014 6:39 pm Subject: A little advice on what not to do with internal oscillator |
Hello.
Just telling you a little advice on what not to do with the internal oscillator of a PIC24FV32KA302:
do not use the preprocesor #use delay(internal = 31250), it will brick your micro.
... |
Topic: Question about the new #preprocessor configurations..... |
mcr1981
Replies: 5
Views: 9286
|
Forum: General CCS C Discussion Posted: Sat Jan 18, 2014 11:29 am Subject: Have the same manual.... |
When you told me that I though I was wrong. But after looking into it came to the same conclusion: I'm right
If you look at the #use pwm page you'll see that it tells you to use the se ... |
Topic: Question about the new #preprocessor configurations..... |
mcr1981
Replies: 5
Views: 9286
|
Forum: General CCS C Discussion Posted: Fri Jan 17, 2014 8:38 pm Subject: Question about the new #preprocessor configurations..... |
I searched the forum for:
set_pwm_duty_percent()
In the PCM/PCH compiler manual, it says the actual function name is:
pwm_set_duty_percent()
which is different from your search.
Always pos ... |
Topic: Question about the new #preprocessor configurations..... |
mcr1981
Replies: 5
Views: 9286
|
Forum: General CCS C Discussion Posted: Fri Jan 17, 2014 6:56 pm Subject: Question about the new #preprocessor configurations..... |
Hello.
I searched the forum for:
set_pwm_duty_percent()
#use pwm
and found no results that were adequate for me.
I'm trying to use these new pre-processing configurations. I've mana ... |
Topic: No internal OSC |
mcr1981
Replies: 3
Views: 7102
|
Forum: General CCS C Discussion Posted: Fri Jan 17, 2014 6:23 pm Subject: No internal OSC |
A couple of bits to this.
The first is a 'confusion' in the labelling of this oscillator. For some reason Microchip, elect to call this particular oscillator the 'Fast RC oscillator', not the 'inte ... |
Topic: [Solved] Can't initialize int48 |
mcr1981
Replies: 10
Views: 16454
|
Forum: General CCS C Discussion Posted: Thu Jan 16, 2014 1:18 am Subject: About int48, int64, float48 and float64 |
Looks like I have some issue with this too Mr Ttelmah.
I'm moving to PCD from PCH (using MPLAB IDE, now MPLAB X).
I can see in the device file support for longer integers and floats:
#if ... |
Topic: CCS & MPLAB (8.9) question |
mcr1981
Replies: 1
Views: 4290
|
Forum: General CCS C Discussion Posted: Wed Jan 15, 2014 5:25 pm Subject: Not much... |
I also use PCB, PCM, PCH and now using PCD with MPLAB (PCD with MPLAB X). The MPLAB IDE editors don't have a lot of features.
The MPLAB X compared with it's predecessor has a lot of features.
I ... |
Topic: Question about Hitachi 44780 and PIC24 |
mcr1981
Replies: 6
Views: 8803
|
Forum: General CCS C Discussion Posted: Tue Jan 14, 2014 1:19 am Subject: Got it working but.... |
Had to use the built in LCD driver from CCS.
Their driver had support for PCD command compiler, Flex_lcd does not.
Had to use one more PIN for R/W, but at least it's working now.
Thanks. |
Topic: Question about Hitachi 44780 and PIC24 |
mcr1981
Replies: 6
Views: 8803
|
Forum: General CCS C Discussion Posted: Mon Jan 13, 2014 3:32 am Subject: Looks like I have a connection problem.... |
The driver works with PIC16 and PIC18 (I've tested it).
Probably the connections are bad.
Changed the int8 to unsigned int8 in the flex driver just to be sure.
Looking at the device definit ... |
|