Author |
Message |
Topic: n*HW, 1*driver |
aaaaamartin
Replies: 15
Views: 15400
|
Forum: General CCS C Discussion Posted: Tue Dec 04, 2012 8:07 am Subject: n*HW, 1*driver |
Hi ckielstra,
The same input(pin) function can also be called with a RAM variable
Is this a "new" feature I am missing? - My compiler is terribly old, 5y+ or something.
Got licence ... |
Topic: n*HW, 1*driver |
aaaaamartin
Replies: 15
Views: 15400
|
Forum: General CCS C Discussion Posted: Mon Dec 03, 2012 3:26 pm Subject: n*HW, 1*driver |
Fun fun fun,
actually, the intention of the thread was to discuss decoupling of I/O operations from Pin-Constants.
@Ttelmah: Thanks for your suggestion.
@bkamen: Yeah, that is what protocols ar ... |
Topic: n*HW, 1*driver |
aaaaamartin
Replies: 15
Views: 15400
|
Forum: General CCS C Discussion Posted: Mon Dec 03, 2012 3:02 am Subject: n*HW, 1*driver |
Hi Jay,
sorry for causing confusion. My initial question meant something completely different. So I'll try to sum up:
It's not about specific hardware.
It's about a general approach of reusing ... |
Topic: n*HW, 1*driver |
aaaaamartin
Replies: 15
Views: 15400
|
Forum: General CCS C Discussion Posted: Sun Dec 02, 2012 4:59 pm Subject: n*HW, 1*driver |
mkay!!!
then, HOW reUSE code? plz... |
Topic: n*HW, 1*driver |
aaaaamartin
Replies: 15
Views: 15400
|
Forum: General CCS C Discussion Posted: Sun Dec 02, 2012 7:17 am Subject: n*HW, 1*driver |
Hi Jay,
thanks for pointing it out!
What exactly do you mean by:
Also be aware that the temperature devices do NOT have the same 'protocol' or timing format, so you can't mix them on the sam ... |
Topic: n*HW, 1*driver |
aaaaamartin
Replies: 15
Views: 15400
|
Forum: General CCS C Discussion Posted: Sun Dec 02, 2012 6:07 am Subject: n*HW, 1*driver |
Hi,
I was wondering, how does one use driver code with multiple pieces of the same hardware connected at once.
e.g. the DS1822 code found here, which uses the CCS IO_Functions quite a lot:
ht ... |
Topic: Displaying binary numbers |
aaaaamartin
Replies: 3
Views: 7058
|
Forum: General CCS C Discussion Posted: Thu Feb 19, 2009 1:45 pm Subject: Displaying binary numbers |
This is done using the binary operators & | ^ .
Basically you need to check each bit of your variable.
You can also use bitwise shifting << >> in a loop to test all bits one by one ... |
Topic: variable coding help |
aaaaamartin
Replies: 7
Views: 6855
|
Forum: General CCS C Discussion Posted: Sun Jul 22, 2007 7:57 pm Subject: variable coding help |
Hello,
I now use a const array of pointers to each var and another arrray,
telling about the size of var, because I use int pointers.
Anyway I would like to see an example of Ttelmah's approach ... |
Topic: variable coding help |
aaaaamartin
Replies: 7
Views: 6855
|
Forum: General CCS C Discussion Posted: Sun Jul 22, 2007 6:28 pm Subject: variable coding help |
Ttelmah,
I must admitt, I don't get it to work.
Can you please show an example.
Thanks Martin |
Topic: variable coding help |
aaaaamartin
Replies: 7
Views: 6855
|
Forum: General CCS C Discussion Posted: Sun Jul 22, 2007 3:12 am Subject: variable coding help |
How many variables are involved?.
What are the sizes of the variables (all the same, as shown, or different for different commands)?.
variables involved : ~ 100
types: signed or unsigned 8- ... |
Topic: variable coding help |
aaaaamartin
Replies: 7
Views: 6855
|
Forum: General CCS C Discussion Posted: Sun Jul 22, 2007 1:21 am Subject: variable coding help |
Thanks PCM,
I see, switch-code is efficient.
But, let me go a bit further into detail...
That's what I'm doing:
The Pic can recieve dumps of data, from a host, that it needs to assign to c ... |
Topic: variable coding help |
aaaaamartin
Replies: 7
Views: 6855
|
Forum: General CCS C Discussion Posted: Sat Jul 21, 2007 11:54 pm Subject: variable coding help |
Hello,
I'm looking for a way to assign a value to a variable as shown below.
Note that I used long for "var" ...
What I do not want is: 1) waste ram, 2) waste rom, 3) no solution ;-)
I ... |
Topic: PIC18F2550 & PIC18F2550 crystal settings |
aaaaamartin
Replies: 6
Views: 15348
|
Forum: General CCS C Discussion Posted: Tue Jul 17, 2007 2:00 pm Subject: PIC18F2550 & PIC18F2550 crystal settings |
look here
http://www.sprut.de/electronic/pic/8bit/18f/programm/usbbootloader/usbboot.htm
for a graphic and explanation (in german) on how to setup the xtal.
Best wishes Martin |
Topic: sw rs232 weird behaviour |
aaaaamartin
Replies: 3
Views: 4235
|
Forum: General CCS C Discussion Posted: Wed Jul 11, 2007 12:49 pm Subject: sw rs232 weird behaviour |
Thank_you (Ttelmah && ckielstra);
this solved the problem and made it clear to understand.
I should have looked at the warnings, but by that time it was 5 o'clock in the morning, after a ... |
Topic: sw rs232 weird behaviour |
aaaaamartin
Replies: 3
Views: 4235
|
Forum: General CCS C Discussion Posted: Tue Jul 10, 2007 10:02 pm Subject: sw rs232 weird behaviour |
Hi,
the code below works fine, however if you bring in both delays, it just recieves garbage.
Toggling "sample_early" makes no difference and
the baudrate is just 1200.
Compiler i ... |
|