Author |
Message |
Topic: Newbie - creating a custom port? |
as702ecs
Replies: 10
Views: 13941
|
Forum: General CCS C Discussion Posted: Mon Jun 26, 2006 8:52 am Subject: Newbie - creating a custom port? |
Thanks, Mark. I've been staring at the computer screen for too long! I'll give it a shot. |
Topic: Newbie - creating a custom port? |
as702ecs
Replies: 10
Views: 13941
|
Forum: General CCS C Discussion Posted: Mon Jun 26, 2006 8:46 am Subject: Newbie - creating a custom port? |
my mistake. in anycase i still cannot find them on the datasheet:
http://ww1.microchip.com/downloads/en/devicedoc/39564b.pdf
section 9.0, I/O Ports
:( |
Topic: Newbie - creating a custom port? |
as702ecs
Replies: 10
Views: 13941
|
Forum: General CCS C Discussion Posted: Mon Jun 26, 2006 8:34 am Subject: Newbie - creating a custom port? |
i tried setting it up using macros as suggested in http://www.ccsinfo.com/forum/viewtopic.php?t=18949 by PCW Programmer. Unfortunately the memory addresses associated with each output pin have been ex ... |
Topic: Newbie - creating a custom port? |
as702ecs
Replies: 10
Views: 13941
|
Forum: General CCS C Discussion Posted: Mon Jun 26, 2006 4:37 am Subject: Newbie - creating a custom port? |
ckielstra, do you mean something like this?
extern volatile near unsigned char PORTDATA;
extern volatile near union {
struct {
unsigned RB0:1;
unsigned RB1:1;
unsigned RB ... |
Topic: Newbie - creating a custom port? |
as702ecs
Replies: 10
Views: 13941
|
Forum: General CCS C Discussion Posted: Mon Jun 26, 2006 4:19 am Subject: Newbie - creating a custom port? |
ok, would something like this work?
--------------------------------------------------------
#define TABLE_SIZE 16
int pin;
int16 PORTDATA;
int16 pin_table[] = {PIN_C0, PIN_B7, PIN_B6, PIN_ ... |
Topic: Newbie - creating a custom port? |
as702ecs
Replies: 10
Views: 13941
|
Forum: General CCS C Discussion Posted: Mon Jun 26, 2006 3:44 am Subject: Newbie - creating a custom port? |
forgive me since i'm still trying to get to grips with C and PIC programming. I have a PIC18F452 and am trying to configure a 9-bit output using portB<0:7> and portC<0>. How do i create a ... |
|