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 27 matches
CCS Forum Index
Author Message
  Topic: Library for a 24LC512 serial EEPROM question
Alphada

Replies: 3
Views: 10371

PostForum: General CCS C Discussion   Posted: Thu Jul 27, 2017 7:22 am   Subject: Library for a 24LC512 serial EEPROM question
Working backwards....

The BEST place to get information about the 24LC512 is from manufacturer. I just downloaded the Microchip datasheet for their device.

Yes, you can write at any individual a ...
  Topic: Library for a 24LC512 serial EEPROM question
Alphada

Replies: 3
Views: 10371

PostForum: General CCS C Discussion   Posted: Thu Jul 27, 2017 6:52 am   Subject: Library for a 24LC512 serial EEPROM question
void write_ext_eeprom(EEPROM_ADDRESS locEE, unsigned int8 data)
{
disable_interrupts(global);

unsigned int8 status;

i2c_start(SHARED_STREAM_I2C_EEPROM&# ...
  Topic: IOC interrupt not working PIC16F1786
Alphada

Replies: 13
Views: 24139

PostForum: General CCS C Discussion   Posted: Sun Jul 09, 2017 3:00 pm   Subject: IOC interrupt not working PIC16F1786
On the smoothing. YES.
Whatever your source, there is always the problem that internally, the chip _will_ draw momentary massively different power levels at nSec timings. This _will_ generate instant ...
  Topic: IOC interrupt not working PIC16F1786
Alphada

Replies: 13
Views: 24139

PostForum: General CCS C Discussion   Posted: Sun Jul 09, 2017 1:50 pm   Subject: IOC interrupt not working PIC16F1786
some hardware errors from the schematic include
no ground(VSS) to PIC
no power (VDD) to PIC
no power supply bypass caps
no pullup on MCLR
all I/O pins not terminated
no filter caps on PB switch/ ...
  Topic: IOC interrupt not working PIC16F1786
Alphada

Replies: 13
Views: 24139

PostForum: General CCS C Discussion   Posted: Sun Jul 09, 2017 1:41 pm   Subject: IOC interrupt not working PIC16F1786
Thx for your answer, you were right that was the problem, after initializing these pins with:

output_low(pin_A0);
output_low(pin_A1);
output_low(pin_A2);
outp ...
  Topic: Fastest way to set pin output
Alphada

Replies: 17
Views: 29734

PostForum: General CCS C Discussion   Posted: Sun Jul 09, 2017 1:39 pm   Subject: Fastest way to set pin output
#byte PORTA = 0x0E22

The compiler has a very nice feature, "getenv" that saves you from looking up the addresses of the special function registers (SFRs). Use it like this:

#byte POR ...
  Topic: IOC interrupt not working PIC16F1786
Alphada

Replies: 13
Views: 24139

PostForum: General CCS C Discussion   Posted: Sat Jul 08, 2017 8:34 pm   Subject: IOC interrupt not working PIC16F1786

Also, your pushbuttons are wrong. They leave the IOC pins floating
or at +5v. This will not work. The IOC pins must be kept at defined
logic levels. This means a high or a low level, not floatin ...
  Topic: IOC interrupt not working PIC16F1786
Alphada

Replies: 13
Views: 24139

PostForum: General CCS C Discussion   Posted: Sat Jul 08, 2017 7:50 pm   Subject: IOC interrupt not working PIC16F1786
The program you show us is NOT complete and I seriously doubt it will compile.
Your schematic has several errors and omissions so I conclude you're 'testing' using Proteus ? If so be advised that Pro ...
  Topic: Fastest way to set pin output
Alphada

Replies: 17
Views: 29734

PostForum: General CCS C Discussion   Posted: Sat Jul 08, 2017 6:49 pm   Subject: Fastest way to set pin output
In the datasheet; every PIC has 100s of pages of 'need to know' information located there.
While there is a 'core' of technology that is common to all, each series or family of PICs have specialty fe ...
  Topic: How to use matrix keypad with IOC interrupts ?
Alphada

Replies: 4
Views: 11130

PostForum: General CCS C Discussion   Posted: Sat Jul 08, 2017 5:09 pm   Subject: How to use matrix keypad with IOC interrupts ?
Thx for the answer but i wasn't expecting exactly a code working out of the box, i have one example that works what i need is to learn how to ad the very basics aspects, some pseudo code or some tips ...
  Topic: IOC interrupt not working PIC16F1786
Alphada

Replies: 13
Views: 24139

PostForum: General CCS C Discussion   Posted: Sat Jul 08, 2017 4:30 pm   Subject: IOC interrupt not working PIC16F1786
When the IOC interrupt fires you must read the port in the interrupt routine to reset the interrupt.

that's something I notice some how, but it doesn't even fire one time it just doesn't, how shoul ...
  Topic: Fastest way to set pin output
Alphada

Replies: 17
Views: 29734

PostForum: General CCS C Discussion   Posted: Sat Jul 08, 2017 3:44 pm   Subject: Fastest way to set pin output
#byte PORTA = 0x0E22


Is that the address of that register? am I correct?

Where do i find those addresses? on the chip datasheet or is found on the chip .h driver?

Excuse me I'm learning.
  Topic: How to use matrix keypad with IOC interrupts ?
Alphada

Replies: 4
Views: 11130

PostForum: General CCS C Discussion   Posted: Sat Jul 08, 2017 3:40 pm   Subject: How to use matrix keypad with IOC interrupts ?
Check here...
http://www.ccsinfo.com/forum/viewtopic.php?t=26333&highlight=flexkbd

This is a 'flexible' version of the keypad driver. I'm currently using it for a couple of projects. The GREAT ...
  Topic: IOC interrupt not working PIC16F1786
Alphada

Replies: 13
Views: 24139

PostForum: General CCS C Discussion   Posted: Sat Jul 08, 2017 3:37 pm   Subject: IOC interrupt not working PIC16F1786
Compiler Version 5.070

I'm trying to understand how does the IOC works but the interrupt wont fire.

This is my code

#include <main.h>


#INT_IOC
void IOC_isr(void)
{ ...
  Topic: convert input_b result to pin_bx handle
Alphada

Replies: 5
Views: 11520

PostForum: General CCS C Discussion   Posted: Sat Jul 01, 2017 12:25 pm   Subject: convert input_b result to pin_bx handle
The numerical handle is simply the memory address of the port, *8, plus the actual pin number.
So yes, this can be coded, but since there would be 256 possible values, you'd need 256 pins for every ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group