On 6/18/07, soliton <[EMAIL PROTECTED]> wrote:
>
> Thanks Mark, for the quick reply. I have been searching through sdcc manual
> and google, yet I could not find what I am looking for. I don't know there
> is a collection of macro in sdcc page. Thanks.
>
I only know because I asked the same questi
On 6/18/07, Mark Rages <[EMAIL PROTECTED]> wrote:
On 6/18/07, soliton <[EMAIL PROTECTED]> wrote:
> Hello,
>
> In other C compiler, one could express binary number in following form:
>
> unisgned char i;
> i = 0b1010;
>
> But it seems that this statement is invalid in sdcc. Are there any othe
On 6/18/07, soliton <[EMAIL PROTECTED]> wrote:
> Hello,
>
> In other C compiler, one could express binary number in following form:
>
> unisgned char i;
> i = 0b1010;
>
> But it seems that this statement is invalid in sdcc. Are there any other way
> to express binary number in SDCC?
> I don't w
Hello,
In other C compiler, one could express binary number in following form:
unisgned char i;
i = 0b1010;
But it seems that this statement is invalid in sdcc. Are there any other way
to express binary number in SDCC?
I don't want the hexadecimal expression like i = 0x0a
TIA
--
soliton
-
On Sat, Jun 16, 2007 at 12:02:28AM +0200, Raphael Neider wrote:
> Hi Peter,
>
> > I need to have SDCC support the 18f2520
> >
> > Is anyone else working on support for it that I could build off of?
>
> Support for the 18f[24][45]20 series (18f4520 was already supported) has
> been added in SDCC
Hi Milan,
> I can compile it, but building all produces an output:
>
> sdcc -mpic16 -p18f1220 -V -Wl-c -Wl-s/usr/share/gputils/lkr/18f1220.lkr
> -I/home/milan/ide/piklab/sdcc/ad_test/ -I/usr/share/sdcc/include/pic16/
> -oad_test.hex adtest.o
> warning: processor mismatch in "/usr/bin/../share/s
Sorry, I am newbie and I am playing with Piklab + sdcc.
This little testing code:
#include"pic18f1220.h"
#include "adc.h"
void main() {
long temp;
adc_open(ADC_CHN_1, ADC_FOSC_4, ADC_CFG_5A_0R, ADC_FRM_RJUST);
while (adc_busy()) ;
temp = (adc_read());
}
I can compile it,