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 19 matches
CCS Forum Index
Author Message
  Topic: #INT_RDA and PIC16F87
muratmaman

Replies: 23
Views: 69830

PostForum: General CCS C Discussion   Posted: Sun Nov 14, 2010 4:15 am   Subject: #INT_RDA and PIC16F87
I notice that you're applying arbitrary changes to your code, fixing some bugs and add new at other places, one step forward and two steps back.
Previously you had int_rb enabled without an #int_rb ...
  Topic: #INT_RDA and PIC16F87
muratmaman

Replies: 23
Views: 69830

PostForum: General CCS C Discussion   Posted: Sat Nov 13, 2010 2:48 pm   Subject: #INT_RDA and PIC16F87
First, get rid of most of your RDA code.
1) You do not need to test if a character is available, if the interrupt occurs, one _is_.
2) Do _not_ write the the EEPROM in the interrupt. The EEPROM writ ...
  Topic: #INT_RDA and PIC16F87
muratmaman

Replies: 23
Views: 69830

PostForum: General CCS C Discussion   Posted: Sat Nov 13, 2010 1:26 pm   Subject: #INT_RDA and PIC16F87
Your latest code has an #INT_RDA handler, but is missing #INT_RB, which must be expected to cause your application to hang. The #INT_RDA is performing getc(), as required, but it most likely should al ...
  Topic: #INT_RDA and PIC16F87
muratmaman

Replies: 23
Views: 69830

PostForum: General CCS C Discussion   Posted: Sat Nov 13, 2010 7:59 am   Subject: #INT_RDA and PIC16F87
So, where are the other handlers?.
You must _never_ enable an interrupt without a handler for that interrupt present. INT_RB, and INT_RDA in particular, _must_ perform the operations to reset the har ...
  Topic: int_tbe problems
muratmaman

Replies: 9
Views: 12064

PostForum: General CCS C Discussion   Posted: Thu Nov 11, 2010 12:42 am   Subject: int_tbe problems
Thanks Ttelmah for an excellent description. I wish I had tried SAMPLE_EARLY. I'm going to go back and give it a try.
Inside the interrupt on change isr I plan to be doing something this
If ( KBhi ...
  Topic: #INT_RDA and PIC16F87
muratmaman

Replies: 23
Views: 69830

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2010 6:04 am   Subject: #INT_RDA and PIC16F87
No, because the problem will be in one (or more) of the interrupt handlers, which you don't show.

Best Wishes

#include "16f886.h"
#device *=16 ADC=10
#fuses INTRC_IO,NOWDT,NOPROTECT, ...
  Topic: #INT_RDA and PIC16F87
muratmaman

Replies: 23
Views: 69830

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2010 5:38 am   Subject: #INT_RDA and PIC16F87
You are spending too long in one or more of the interrupt handlers.

Remember that things like timer interrupts, INT_RDA, etc., reflect hardware events happening at intervals. You need to always han ...
  Topic: #INT_RDA and PIC16F87
muratmaman

Replies: 23
Views: 69830

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2010 3:21 am   Subject: #INT_RDA and PIC16F87
Thank you VERY MUCH PCM programmer !!!

I had a real problem trying to activate the silicon UART on a PIC16F88.

I started to read here and there and, - BOY - , I was discouraged to see - NOT AGAI ...
  Topic: Communicate 2 pic via serial port
muratmaman

Replies: 0
Views: 4986

PostForum: General CCS C Discussion   Posted: Wed Oct 20, 2010 4:33 am   Subject: Communicate 2 pic via serial port
Dear All,

I would want to send data to another pic by serial port. My board have several peripheral that listening them. When I want to send data another pic I am able to, however in this case I ca ...
  Topic: At24c128/256
muratmaman

Replies: 21
Views: 18424

PostForum: General CCS C Discussion   Posted: Sun Jan 31, 2010 4:17 pm   Subject: At24c128/256
The 24256.c driver should work with the Atmel eeprom.

Can I use hardware i2c on at24c128 ?
#use i2c(MASTER, sda=PIN_C4,scl=PIN_C3, FORCE_HW)

if I used to above code my software is fro ...
  Topic: At24c128/256
muratmaman

Replies: 21
Views: 18424

PostForum: General CCS C Discussion   Posted: Sun Jan 31, 2010 3:49 pm   Subject: At24c128/256
Remove the 100K pull-ups. Put in 4.7K pull-ups.

Does your board have an RS-232 connector on it, so you can display
debug information in a terminal window on your PC ?

My board does not have a ...
  Topic: At24c128/256
muratmaman

Replies: 21
Views: 18424

PostForum: General CCS C Discussion   Posted: Sun Jan 31, 2010 2:59 pm   Subject: At24c128/256
Are you testing this in real hardware, or is this a Proteus simulation ?

I am testing it real hardware not on proteus. Also I checked my hardware is connected correct pin. Do you think 24256.c driv ...
  Topic: At24c128/256
muratmaman

Replies: 21
Views: 18424

PostForum: General CCS C Discussion   Posted: Sun Jan 31, 2010 2:37 pm   Subject: At24c128/256
Try a more simple program, as shown below. Also make sure you have
the correct connections:
Pin C4 on the PIC connects to the SDA pin on the At24c128.

Pin C3 on the PIC connects to the SCL pin o ...
  Topic: At24c128/256
muratmaman

Replies: 21
Views: 18424

PostForum: General CCS C Discussion   Posted: Sun Jan 31, 2010 1:35 pm   Subject: At24c128/256
Post your test program, similar to this link:
http://www.ccsinfo.com/forum/viewtopic.php?t=30346&start=10
Do not post the 24256.c driver. Only post your test program.

The test program must b ...
  Topic: At24c128/256
muratmaman

Replies: 21
Views: 18424

PostForum: General CCS C Discussion   Posted: Sun Jan 31, 2010 12:42 pm   Subject: At24c128/256
0=ACK.
In C, 0=true
So your function, returns ext_eeprom_notready (since you invert your ACK bit). Then you invert this again, so will wait if the chip _does_ acknowledge.....

Best Wishes

I pr ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group