CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 20 matches
CCS Forum Index
Author Message
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Mon Jul 01, 2013 10:58 am   Subject: Serial communication and pic 12f - problem and questions
Something strange is happening and I have no idea why.

First of all, I used the code above, with floats, and I just received crap.
Then, I wrote a test program with 2 printf's. In the first one I ...
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Tue Jun 25, 2013 5:34 pm   Subject: Serial communication and pic 12f - problem and questions
Hi,

Basic troubleshooting. You should start by printing the value(s) returned by the read_adc() function to see if the A/D is working as you expect. Vary the input signal(s), and see if these resul ...
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Thu Jun 20, 2013 1:43 pm   Subject: Serial communication and pic 12f - problem and questions
I've updated my version to 4.114

Serial communication is finally functioning (thank you pcm!). I'm receiving the strings, but there is something with my values. I must receive floats in a range of ...
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Thu Jun 20, 2013 12:09 pm   Subject: Serial communication and pic 12f - problem and questions
Your version is totally screwed up. The fuses are wrong. Also, the CCS
functions are quite different, and I suspect wrong, in many cases.

Here are the fuses listed at the end of the .LST file i ...
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Thu Jun 20, 2013 11:26 am   Subject: Serial communication and pic 12f - problem and questions
I've changed my code, but it still doesn't work.

What's your CCS compiler version ? Look at the top of the .LST file
in your project directory to see the version. It will be a 4-digit number
...
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Mon Jun 17, 2013 1:58 pm   Subject: Serial communication and pic 12f - problem and questions
I've changed my code, but it still doesn't work. I checked the signal with the oscilloscope and period was 500ns, which obviously does not match with my delay. Anyway, the signal of pin a4 looks like ...
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Mon Jun 17, 2013 9:32 am   Subject: Serial communication and pic 12f - problem and questions
#use rs232(baud=9600,xmit=PIN_A4)
#use fast_io(a)

set_tris_a(0b00011000);

In your code above you're setting Pin A4 to be an input pin in the
set_tris_a() line. In a TRIS value, a '1' mean ...
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Mon Jun 17, 2013 9:26 am   Subject: Serial communication and pic 12f - problem and questions


#use rs232(baud=9600,xmit=PIN_A4)
In the line above, by specifying only the xmit pin, you are telling the
compiler to create a software UART, and to not use the hardware UART.
Is that what you ...
  Topic: Serial communication and pic 12f - problem and questions
matheusmestres28

Replies: 15
Views: 22095

PostForum: General CCS C Discussion   Posted: Fri Jun 14, 2013 4:25 pm   Subject: Serial communication and pic 12f - problem and questions
Hello guys, I'm using pic 12F1822 and its internal oscillator.

Questions:
There is any problem if I use delay function with it's internal oscillator??
A friend told me CCS usually presents a prob ...
  Topic: Problem with pic12f - Software or hardware?
matheusmestres28

Replies: 11
Views: 14515

PostForum: General CCS C Discussion   Posted: Mon May 20, 2013 1:13 pm   Subject: Problem with pic12f - Software or hardware?
ohh, btw, it worked fine when I did what PCM says, changed xmit to PIN_A4 and redefined my fuses to intrc_io instead of intrc only.

Now I'm going to try it on 12f1822.

Thank you very much guys
  Topic: Problem with pic12f - Software or hardware?
matheusmestres28

Replies: 11
Views: 14515

PostForum: General CCS C Discussion   Posted: Mon May 20, 2013 12:55 pm   Subject: Problem with pic12f - Software or hardware?
I think I discovered the problem. There are two versions of the 12F683
data sheet that pop up on Google. (Assuming Google is used to find them).

In the "b" version of the data sheet, in ...
  Topic: Problem with pic12f - Software or hardware?
matheusmestres28

Replies: 11
Views: 14515

PostForum: General CCS C Discussion   Posted: Wed May 15, 2013 2:49 pm   Subject: Problem with pic12f - Software or hardware?

Proteus points this error: "ADC conversion started before wait time has
expired following previous conversion or channel change".

If you would simply download the 12F683 data sheet, ...
  Topic: Problem with pic12f - Software or hardware?
matheusmestres28

Replies: 11
Views: 14515

PostForum: General CCS C Discussion   Posted: Wed May 15, 2013 2:43 pm   Subject: Problem with pic12f - Software or hardware?
Screaming problem is the serial pin....

A3, is _input only_.

Best Wishes

I have a doubt here.. PIN_A3 = GP3 or AN3??

One of my friends in lab told me PIN_A3 = AN3.

In pic 12f683 datashe ...
  Topic: Problem with pic12f - Software or hardware?
matheusmestres28

Replies: 11
Views: 14515

PostForum: General CCS C Discussion   Posted: Wed May 15, 2013 2:27 pm   Subject: Problem with pic12f - Software or hardware?
With respect to real hardware...
You're using a 5 volt PIC...is the accelerometer rated for 5 volts?
Which mfr/make/model ? Having 3 analog outputs is 'rare', most are digital...

Use 3 pots inste ...
  Topic: Problem with pic12f - Software or hardware?
matheusmestres28

Replies: 11
Views: 14515

PostForum: General CCS C Discussion   Posted: Mon May 13, 2013 1:43 pm   Subject: Problem with pic12f - Software or hardware?
Hello guys, I'm using pic12f1822 and an accelerometer in one of my applications and having some problems. Pic12f1822 isn't an available device in proteus, so I'm using pic12f683 to simulate my circuit ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group