Re: [Flashforth-devel] strange answer from UART
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2014-03-17 18:25:00
|
Hello ! With the 4 MHz external clock the following should work: HSPLL , 9600 , constant clock=d'16000000' HSPLL , 38400 , constant clock=d'16000000' FlashForth always configures the internal clock to run at 8 MHz. With the internal oscillator the following should work. INTIO67 , 9600, constant clock=d'8000000' The INTIO67 with PLL requires that the PLL is enabled in software. There is a define missing in the processor configuration file for that. The INTIO67 with PLL requires that you define in p18f2525-2620-4525-4620.cfg ;;; Activate 4xPLL from SW for INTOSC modes in FlashForth 5.0 #define PLL ENABLE ; ENABLE or DISABLE and then these should also work INTIO67 , 9600 , constant clock=d'32000000' INTIO67 , 38400 , constant clock=d'32000000' BR Mike On 03/17/2014 06:14 PM, Thomas Buschhardt wrote: > Hallo now I was able to run it :-) > > Here are my tested configs > OSC - Baud = Status > ----------------------------------- > ECIO6 - 9600 = working > ECIO6 - 14400 = not working > ECIO6 - 38400 = not working > INTIO7 - 9600 = not working (without oszi) > INTIO67 - 9600 = not working (without oszi) > HSPLL - 9600 = not working > HSPLL - 38400 = not working > > Thank you all very much > Thomas > > > 2014-03-17 13:03 GMT+01:00 Peter Jacobs <pe...@me... > <mailto:pe...@me...>>: > > Thomas, > Looking at sections 2.x in the datasheet, it seems to me that the > PLL is not exclusively for crystals and resonators; it available > to the 4 and 8MHz internal oscillator. Figure 2.8 shows it > limited to these options. That figure is (presumably) a > simplified diagram and I don't know enough to be sure what would > happen if you set OSC=HSPLL and drive the OSC1 pin with your > external oscillator. Would you be abusing the silicon? You > wouldn't be able to use RA6 as an IO pin but that might be OK > since you don't show it in use on your diagram. > Peter J. > |