Hi Joep,

Sorry for my late response, I've been (and will still be) very busy these
days.

I tried print_word_dec() with a constant, it just won't work too. I've also
run 16f88_serial_print.jal (with few modifications: internal osc @8MHz,
baudrate: 19200), and the problem is reproducible. In the "word" section, I
got:

Test print.jal - words
4
B26E
1011001001101110
-3


but no trace of "45678" (just a "4" ?). This would confirm we have a problem
with print.jal... Can you reproduce this ?

You can also have a look at my code using ADC (see attachment) (must be
compiled against SVN rev. >=1040)


Cheers,
Seb




2009/6/22 Joep Suijs <[email protected]>

> Hi Seb,
>
> I used print yesterday and did not notice anything wrong. Can you repeat
> this issue when you call print_word_dec() with a constant (or var with
> constant assinged to it)? Can you provide me the program that does not
> properly?
>
> Joep
>
> 2009/6/21 Sebastien Lelong <[email protected]>
>
>> Hi guys,
>>
>> I'm testing my ADC libs in high resolution mode. I need to print the
>> result on serial, so I tried to use print.jal lib.
>>
>> var word measure
>> measure = adc_read(0)
>> print_word_dec(serial_hw_data,measure)
>>
>> It seems print_word_dec can't actually print the result (~512 or ~511,
>> half of 10bits). I tried with print_word_binary(), and it works great.
>>
>> Any idea ? Have you ever had problems like that ?
>>
>>
>> Cheers,
>> Seb
>> --
>> Sébastien Lelong
>> http://www.sirloon.net
>> http://sirbot.org
>> >>
>>


-- 
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: 16f88_adc_highres.jal
Description: Binary data

Reply via email to