Yes, 1ms is working. Thanks.

On Sunday, March 9, 2014 3:38:39 AM UTC-4, Joep wrote:
>
> Hi Matt,
>
> Thanks for testing!
>
> I read in the datasheet the oscillator should stabilize within 1ms, so I 
> added a 1ms delay to the samples. This is the time it takes to send 10 
> chars via the serial port, which might cover the 'first few' you mention. 
> Could you test if this is enough? 
>
> A pll system takes significantly longer to stabilze than a crystal 
> oscillator, so it might be a good idea to screen al samples for pll-chips 
> to see if a delay is required.
> Since there are less chips with a pll than without one, a delay would be 
> pointless in most samples. 
>
> Joep
>
>
> 2014-03-09 1:28 GMT+01:00 mattschinkel <[email protected]<javascript:>
> >:
>
>> Thanks Joep, so far I have tested these and they all work.
>>
>> 18f67j50_bit_array.jal
>> 18f67j50_debug.jal
>> 18f67j50_delay_basic.jal
>> 18f67j50_print_large_number.jal
>> 18f67j50_queue.jal
>> 18f67j50_random.jal
>> 18f67j50_serial_format.jal
>> 18f67j50_serial_hw_int_cts.jal 
>> 18f67j50_serial_print.jal 
>> 18f67j50_sqrt.jal
>>
>> But.... I found that without some small delay at the beginning of the 
>> program, some of the serial samples spit out junk for the first few 
>> characters until the osc is settled. Adding delay_100ms(1) after the delay 
>> include fixes it.
>>
>> In my samples, I add a small delay after the device include block like 
>> _usec_delay (100_000).
>>
>> I fell a small delay should be in every sample. Maybe the datasheets say 
>> how much time is needed, but 100ms should be good.
>>
>> On Saturday, March 8, 2014 1:40:56 AM UTC-5, [email protected] wrote:
>>>
>>> Revision: 3422 
>>> Author:   [email protected] 
>>> Date:     Sat Mar  8 06:40:20 2014 UTC 
>>> Log:      18f67j50 samples. 
>>> http://code.google.com/p/jallib/source/detail?r=3422 
>>>
>>> Added: 
>>>   /trunk/sample/18f4620_serial_software.jal 
>>>   /trunk/sample/18f67j50_beep.jal 
>>>   /trunk/sample/18f67j50_bit_array.jal 
>>>   /trunk/sample/18f67j50_debounce.jal 
>>>   /trunk/sample/18f67j50_debug.jal 
>>>   /trunk/sample/18f67j50_delay_basic.jal 
>>>   /trunk/sample/18f67j50_i2c_hw_l0.jal 
>>>   /trunk/sample/18f67j50_i2c_hw_l1.jal 
>>>   /trunk/sample/18f67j50_i2c_hw_slave_check_bus.jal 
>>>   /trunk/sample/18f67j50_i2c_hw_slave_echo.jal 
>>>   /trunk/sample/18f67j50_i2c_hw_slave_eeprom_simulator.jal 
>>>   /trunk/sample/18f67j50_i2c_hw_slave_msg.jal 
>>>   /trunk/sample/18f67j50_i2c_sw_l0.jal 
>>>   /trunk/sample/18f67j50_i2c_sw_l1.jal 
>>>   /trunk/sample/18f67j50_i2c_sw_master_check_bus.jal 
>>>   /trunk/sample/18f67j50_i2c_sw_master_echo.jal 
>>>   /trunk/sample/18f67j50_in_and_out.jal 
>>>   /trunk/sample/18f67j50_keyboard.jal 
>>>   /trunk/sample/18f67j50_lcd_dsm0822a.jal 
>>>   /trunk/sample/18f67j50_lcd_hd44780_pcf8574.jal 
>>>   /trunk/sample/18f67j50_print_large_number.jal 
>>>   /trunk/sample/18f67j50_queue.jal 
>>>   /trunk/sample/18f67j50_random.jal 
>>>   /trunk/sample/18f67j50_serial_format.jal 
>>>   /trunk/sample/18f67j50_serial_hw_int_cts.jal 
>>>   /trunk/sample/18f67j50_serial_print.jal 
>>>   /trunk/sample/18f67j50_serial_software.jal 
>>>   /trunk/sample/18f67j50_seven_segment.jal 
>>>   /trunk/sample/18f67j50_sirc.jal 
>>>   /trunk/sample/18f67j50_sqrt.jal 
>>>   /trunk/sample/18f67j50_startersguide.jal 
>>>   /trunk/sample/18f67j50_temperature_tc77.jal 
>>>   /trunk/sample/18f67j50_timer0_interval.jal 
>>>   /trunk/sample/18f67j50_tmr0_poll_interval.jal 
>>>   /trunk/sample/18f67j50_usb_bootloader_autostart.jal 
>>>   /trunk/sample/18f67j50_usb_hid_generic.jal 
>>>   /trunk/sample/18f67j50_usb_hid_mouse.jal 
>>>   /trunk/sample/18f67j50_usb_serial.jal 
>>> Deleted: 
>>>   /trunk/sample/16f877a_seven_segment.jal 
>>> Modified: 
>>>   /trunk/sample/16f877_serial_software.jal 
>>>   /trunk/sample/18f67j50_large_array.jal 
>>>   /trunk/sample/18f67j50_serial_hardware.jal 
>>>   /trunk/sample/18f67j50_stopwatch.jal 
>>>   /trunk/test/board/board_16f877_dwarf.jal 
>>>   /trunk/test/board/board_18f4620_js.jal 
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "jallib" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/jallib.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to