flashforth-devel Mailing List for FlashForth: for PIC and Atmega (Page 34)
Brought to you by:
oh2aun
You can subscribe to this list here.
2011 |
Jan
|
Feb
(22) |
Mar
(3) |
Apr
(4) |
May
(6) |
Jun
(8) |
Jul
|
Aug
(6) |
Sep
|
Oct
(20) |
Nov
(9) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2012 |
Jan
(4) |
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(14) |
Nov
(1) |
Dec
|
2013 |
Jan
(4) |
Feb
(5) |
Mar
(4) |
Apr
(2) |
May
|
Jun
(29) |
Jul
(7) |
Aug
|
Sep
(20) |
Oct
(9) |
Nov
(2) |
Dec
(7) |
2014 |
Jan
|
Feb
(23) |
Mar
(113) |
Apr
(25) |
May
(31) |
Jun
(9) |
Jul
(47) |
Aug
(15) |
Sep
(1) |
Oct
(4) |
Nov
(8) |
Dec
(3) |
2015 |
Jan
(21) |
Feb
(1) |
Mar
(18) |
Apr
(16) |
May
(100) |
Jun
(33) |
Jul
|
Aug
(10) |
Sep
(8) |
Oct
(7) |
Nov
(5) |
Dec
|
2016 |
Jan
(12) |
Feb
(9) |
Mar
|
Apr
(7) |
May
(5) |
Jun
(9) |
Jul
(1) |
Aug
(2) |
Sep
(17) |
Oct
(3) |
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
(12) |
Mar
(9) |
Apr
(3) |
May
(7) |
Jun
|
Jul
(12) |
Aug
|
Sep
(13) |
Oct
|
Nov
|
Dec
(10) |
2018 |
Jan
(1) |
Feb
|
Mar
(7) |
Apr
(4) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(21) |
Oct
(3) |
Nov
|
Dec
|
2019 |
Jan
(5) |
Feb
(4) |
Mar
|
Apr
|
May
(3) |
Jun
(11) |
Jul
(4) |
Aug
(6) |
Sep
(3) |
Oct
|
Nov
(9) |
Dec
(7) |
2020 |
Jan
(2) |
Feb
(3) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(4) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(8) |
Apr
(40) |
May
(12) |
Jun
|
Jul
|
Aug
(3) |
Sep
(3) |
Oct
(4) |
Nov
(10) |
Dec
(4) |
2022 |
Jan
(29) |
Feb
(7) |
Mar
(10) |
Apr
|
May
(3) |
Jun
(3) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(6) |
2023 |
Jan
(8) |
Feb
|
Mar
(5) |
Apr
(9) |
May
(6) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
(9) |
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Mikael N. <mik...@pp...> - 2014-03-20 16:27:33
|
I have removed some standard Forth incompatibilites from FF 5.0 CON was one of those. Maybe it was the only one... You can always define: : con constant ; Mike On 03/20/2014 01:18 PM, craig bair wrote: > "con" depricated in 5.0?... well, so much for porting from 3.8... > still possible, but annoying. oh well, it'll have to wait its turn. > > |
From: Pete Z. <pza...@pz...> - 2014-03-20 15:10:20
|
Hi Mikael, As you may remember, I have had good luck with FF 4.8, MPLAB 8.92 and the PIC30F4012 in the past. Now trying to get ready for FF 5.0 (again with the PIC30F4012). Is the WORDS display correct in displaying the newly created words at the end of your 'kernel' ? Am still using MPLAB 8.92 here to assemble/compile and wanted to make sure there was no Assembler Memory addressing issue going on. Do you recommend only using MPLAB X ? Pete |
From: craig b. <dab...@ya...> - 2014-03-20 11:21:43
|
"con" depricated in 5.0?... well, so much for porting from 3.8... still possible, but annoying. oh well, it'll have to wait its turn. craig bair ...averaging may or may not help clarify data. If Bill Gates walks into a bar, the average patron becomes a millionaire... |
From: craig b. <dab...@ya...> - 2014-03-20 01:14:50
|
Just got my first chance to test the 5.0 code on my 18F26K22-s and I must admit to being duely impressed. Tweaked the configs for no idle, cpu usage, or multitasking and full-bore 64Mhz on the intosc. Popped right up on the treminal at right baud-rate with no arguement. TICKS and MS work just fine and TURNKEY behaves as advertised (although the host for these little guys won't want to wait 2 secs if it chucks a hardware reset at them). Easy config, running code, looks great so far. I'll load one up with the telemetry slave program tomorrow and torture-test it beside one of the 3.8-based chips tomorrow and see if the BeagleBone can tell them apart (grin). Seems a first-class piece of work so far, my complements, sir. craig bair ...averaging may or may not help clarify data. If Bill Gates walks into a bar, the average patron becomes a millionaire... |
From: Peter J. <pe...@me...> - 2014-03-19 09:25:29
|
The word mclr clears the selected bit. So, bit 0 of TRISB is cleared and the dump shows $fe, as it should. Peter J. On 19/03/14 18:30, Thomas Buschhardt wrote: > Hallo, > > Im a little bit confused about a very simple function. In the > ff-tutorial (flash a LED) the PortB RB0 is set to an output with: > > $ff93 constant trisb > 1 trisb mclr > > thats the bitmask 0000 0001 , but if I look in the datasheet of my > PIC18F2620: > > Setting a TRISB bit (= 1) will make the corresponding PORTB > pin an input (i.e., put the corresponding output driver in > a high-impedance mode). Clearing a TRISB bit (= 0) > will make the corresponding PORTB pin an output > > Thats confusing me, especially because the forth-program works. What > is wrong in my mind? > > Bye Thomas |
From: Thomas B. <bus...@gm...> - 2014-03-19 08:41:47
|
Hi, ok I see in the dump that the bitmask is twisted $ff93 -> $fe but why its that? Thomas |
From: Thomas B. <bus...@gm...> - 2014-03-19 08:30:33
|
Hallo, Im a little bit confused about a very simple function. In the ff-tutorial (flash a LED) the PortB RB0 is set to an output with: $ff93 constant trisb 1 trisb mclr thats the bitmask 0000 0001 , but if I look in the datasheet of my PIC18F2620: Setting a TRISB bit (= 1) will make the corresponding PORTB pin an input (i.e., put the corresponding output driver in a high-impedance mode). Clearing a TRISB bit (= 0) will make the corresponding PORTB pin an output Thats confusing me, especially because the forth-program works. What is wrong in my mind? Bye Thomas |
From: Mikael N. <mik...@pp...> - 2014-03-18 19:14:36
|
On 03/18/2014 08:36 PM, craig bair wrote: > ... actually, circua line #5204 there's a call ZEROLESS followed by > movf Sminus,W,A; iorwf Sminus,W,A; bz MS1... looks odd... > > The unmodified source hangs there, too... Dunnknow, I'm probably > missing something. Yes, you are missing that the system clock is not counting. Say TICKS a few times and you'll see that the it is not incrementing. Mike |
From: Thomas B. <bus...@gm...> - 2014-03-18 19:02:48
|
Hallo, sorry for disturbing - but thats are my further test results: Freq - OSC - Baud = Status ------------------------------- 16 MHz - HSPPL - 9600 = working 16 MHz - HSPPL - 38400 = working 8 MHz - INTIO67 - 9600 = working (without oszi) 32 MHz - INTIO67 - 9600 = working (without oszi and PPLEnable) 32 MHz - INTIO67 - 38400 = working (without oszi and PPLEnable) It seems I test the last weekend everytime with a wrong configuration :-) Thank You all Bye Thomas 2014-03-17 19:24 GMT+01:00 Mikael Nordman <mik...@pp...>: > 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. > > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > -- www.aloedb.org - database for aloes |
From: craig b. <dab...@ya...> - 2014-03-18 18:39:40
|
... actually, circua line #5204 there's a call ZEROLESS followed by movf Sminus,W,A; iorwf Sminus,W,A; bz MS1... looks odd... The unmodified source hangs there, too... Dunnknow, I'm probably missing something. Didn't take the time to scrape it for side-effects. I'll look closer after I get the server/client handling on the host BeagleBone figured out (It CAN keep up with the baudrate AND shovel ethernet to the world). Thanks again for the assist, craig ...averaging may or may not help clarify data. If Bill Gates walks into a bar, the average patron becomes a millionaire... |
From: Mikael N. <mik...@pp...> - 2014-03-18 18:14:39
|
Craig, Probably you have managed to stop the system clock from incrementing the ticks counter. So MS will not work either. Mike |
From: craig b. <dab...@ya...> - 2014-03-18 17:45:37
|
Many thanks, Mike. Hopefully I'll get time soon to work with the Git-Preview I downloaded and make peace with it (grin). Meanwhile, the ms word that the turnkey pause calls appears to have an infinite loop. Turnkey does do its job and not hang if I NOP that "bz ms1" instruction out and re-assemble... Industrial hot-patch, but effective. craig bair ...averaging may or may not help clarify data. If Bill Gates walks into a bar, the average patron becomes a millionaire... |
From: Mikael N. <mik...@pp...> - 2014-03-18 16:15:08
|
You can go here and click on the Download ZIP button to get a snapshot of the latest FF. https://github.com/oh2aun/flashforth BR Mike |
From: Herman A. <exp...@vn...> - 2014-03-18 11:28:02
|
Which wersion of FF do you use? The 5.0 contains the P18f2x4xk22.cfg file. git clone git://git.code.sf.net/p/flashforth/code flashforth-code Momentarily I'm working on a 26k22 controller :) BR Attila ----- Eredeti üzenet ----- Feladó: craig bair <dab...@ya...> Dátum: Kedd, Március 18, 2014 12:05 Tárgy: Re: [Flashforth-devel] compiling 18F2xK22 FF Címzett: "Fla...@li..." <Fla...@li...> > Tne download that I've gotten from SourceForge doesn't appear to have > this file (or any mention of the entire 18FxxK22 line other than the > 14K22) so I've heavily hacked the beginning of the ff18_usb.asm file > to get my 18F26K22-s running. Unfortunately, when I had to disable > the IDLE MODE to get rid of unacceptable system delays, I broke the MS > timer call and that nukes TURNKEY. > > Can I get a pointer to the xxK22 updates so that I can attempt a > polite build without my barbaric thrashings of the code? > > Would appreciate it greatly, > craig bair > > > ...averaging may or may not help clarify data. > If Bill Gates walks into a bar, > the average patron becomes a millionaire... > * Mikael Nordman > * > > * Mar 12 at 4:23 PM > To > * fla...@li... > P18f2x4xk22.cfg is the device specific file. > You can adapt it according to the used oscillator and other device > configuration register options. > > Br Mikael > Sent from my LG Mobile > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > |
From: craig b. <dab...@ya...> - 2014-03-18 11:05:08
|
Tne download that I've gotten from SourceForge doesn't appear to have this file (or any mention of the entire 18FxxK22 line other than the 14K22) so I've heavily hacked the beginning of the ff18_usb.asm file to get my 18F26K22-s running. Unfortunately, when I had to disable the IDLE MODE to get rid of unacceptable system delays, I broke the MS timer call and that nukes TURNKEY. Can I get a pointer to the xxK22 updates so that I can attempt a polite build without my barbaric thrashings of the code? Would appreciate it greatly, craig bair ...averaging may or may not help clarify data. If Bill Gates walks into a bar, the average patron becomes a millionaire... * Mikael Nordman * * Mar 12 at 4:23 PM To * fla...@li... P18f2x4xk22.cfg is the device specific file. You can adapt it according to the used oscillator and other device configuration register options. Br Mikael Sent from my LG Mobile |
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. > |
From: Thomas B. <bus...@gm...> - 2014-03-17 16:17:54
|
Hallo Peter, in the figure 2-7 of the datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/39626b.pdf both osc-pins are connected. Cheers big ears Thomas 2014-03-17 13:03 GMT+01:00 Peter Jacobs <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. > > > > On 17/03/14 21:25, Thomas Buschhardt wrote: > > Dear Peter, is HSPLL actually for crytals and resonators? I use a > oszillator (clock) see link in the first mail. But of course this evening > I'll give it a try. > Thomas > > > 2014-03-17 11:54 GMT+01:00 Peter Jacobs <pe...@me...>: > >> Can you simply turn on the PLL (OSC = HSPLL) to get a 16MHz sys-clock >> frequency? I've quite happily run a PIC18F2520 at 38400 baud with a >> 4MHz crystal and the PLL active. >> Peter J. >> >> >> On 17/03/14 18:33, Herman Attila wrote: >> > Hi Thomas, >> > >> > Maybe your problem comes from low Osc-frequency/baudrate ratio. Using >> 4MHz osc freq. the controller generates the 38400kbs with 10% error. Try to >> use higher osc freq. or lower baudrate. Otherwise I recommend you to use >> 18F26K22 or other xxk22 controllers. They have well configurable internal >> oscillator and have several further excellent features. >> > >> > BR >> > Attila >> > >> > ----- Eredeti üzenet ----- >> > Feladó: Thomas Buschhardt <bus...@gm...> >> > Dátum: Hétfő, Március 17, 2014 8:32 >> > Tárgy: [Flashforth-devel] strange answer from UART >> > Címzett: Fla...@li... >> > >> > >> >> Dear Mikael and mailing listeners, >> >> >> >> I desperated, I got some strange signs back from the PIC. In my >> >> despair - I >> >> installed even MS Windows, to see whether my usb-2-serial adapter is >> broken >> >> - but the program "Hyperterminal" shows the same results. >> >> >> >> Here is my configuration: >> >> >> >> PIC18F2620 >> >> 4 MHz Oscillator Link to >> >> Oszillator<> >> >> MAX232 >> >> FD-USB2Serial-Adapter >> >> >> >> The programing - process runs well with my PICKIT2. When the PIC gets >> >> power >> >> its send the same strange signs, and if I blind input "1 2 3" (to the >> >> stack) in the terminal, I got a answer - that could be the right one. >> >> --snip-- >> >> 38400 - 8 - N - 1 >> >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ >> >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ >> >> ¦¬¡³¨¦¯²´¸ •ް °©£‘¸ Š Š‘ >> >> ± ² ³ ± ² ³ Ÿ Š >> >> --snip-- >> >> Here I restart 3 times the PIC and input "1 2 3" and get back "± ² ³ Ÿ >> >> Š". >> >> >> >> I changed the baudrate, oszillator frequency, the oscillator selection >> >> bits >> >> - without success. >> >> I hope I do some configuration mistakes, so please help me. >> >> >> >> The schematics for my hw-configuration, the (binary) log-file of the >> >> terminal and my changed configurations-files you can find here as zip >> >> file. >> >> >> >> >> >> >> >> >> >> If you need more informations, please drop me a mail. >> >> >> >> Greetings Thomas >> >> >> ------------------------------------------------------------------------------ >> >> Learn Graph Databases - Download FREE O'Reilly Book >> >> "Graph Databases" is the definitive new guide to graph databases and >> their >> >> applications. Written by three acclaimed leaders in the field, >> >> this first edition is now available. Download your free book today! >> >> >> >> _______________________________________________ >> >> Flashforth-devel mailing list >> >> Fla...@li... >> >> >> > >> ------------------------------------------------------------------------------ >> > Learn Graph Databases - Download FREE O'Reilly Book >> > "Graph Databases" is the definitive new guide to graph databases and >> their >> > applications. Written by three acclaimed leaders in the field, >> > this first edition is now available. Download your free book today! >> > http://p.sf.net/sfu/13534_NeoTech >> > _______________________________________________ >> > Flashforth-devel mailing list >> > Fla...@li... >> > https://lists.sourceforge.net/lists/listinfo/flashforth-devel >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> _______________________________________________ >> Flashforth-devel mailing list >> Fla...@li... >> https://lists.sourceforge.net/lists/listinfo/flashforth-devel >> > > > > -- > www.aloedb.org - database for aloes > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > > -- www.aloedb.org - database for aloes |
From: Thomas B. <bus...@gm...> - 2014-03-17 16:14:13
|
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...>: > 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. > > > > On 17/03/14 21:25, Thomas Buschhardt wrote: > > Dear Peter, is HSPLL actually for crytals and resonators? I use a > oszillator (clock) see link in the first mail. But of course this evening > I'll give it a try. > Thomas > > > 2014-03-17 11:54 GMT+01:00 Peter Jacobs <pe...@me...>: > >> Can you simply turn on the PLL (OSC = HSPLL) to get a 16MHz sys-clock >> frequency? I've quite happily run a PIC18F2520 at 38400 baud with a >> 4MHz crystal and the PLL active. >> Peter J. >> >> >> On 17/03/14 18:33, Herman Attila wrote: >> > Hi Thomas, >> > >> > Maybe your problem comes from low Osc-frequency/baudrate ratio. Using >> 4MHz osc freq. the controller generates the 38400kbs with 10% error. Try to >> use higher osc freq. or lower baudrate. Otherwise I recommend you to use >> 18F26K22 or other xxk22 controllers. They have well configurable internal >> oscillator and have several further excellent features. >> > >> > BR >> > Attila >> > >> > ----- Eredeti üzenet ----- >> > Feladó: Thomas Buschhardt <bus...@gm...> >> > Dátum: Hétfő, Március 17, 2014 8:32 >> > Tárgy: [Flashforth-devel] strange answer from UART >> > Címzett: Fla...@li... >> > >> > >> >> Dear Mikael and mailing listeners, >> >> >> >> I desperated, I got some strange signs back from the PIC. In my >> >> despair - I >> >> installed even MS Windows, to see whether my usb-2-serial adapter is >> broken >> >> - but the program "Hyperterminal" shows the same results. >> >> >> >> Here is my configuration: >> >> >> >> PIC18F2620 >> >> 4 MHz Oscillator Link to >> >> Oszillator<> >> >> MAX232 >> >> FD-USB2Serial-Adapter >> >> >> >> The programing - process runs well with my PICKIT2. When the PIC gets >> >> power >> >> its send the same strange signs, and if I blind input "1 2 3" (to the >> >> stack) in the terminal, I got a answer - that could be the right one. >> >> --snip-- >> >> 38400 - 8 - N - 1 >> >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ >> >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ >> >> ¦¬¡³¨¦¯²´¸ •ް °©£‘¸ Š Š‘ >> >> ± ² ³ ± ² ³ Ÿ Š >> >> --snip-- >> >> Here I restart 3 times the PIC and input "1 2 3" and get back "± ² ³ Ÿ >> >> Š". >> >> >> >> I changed the baudrate, oszillator frequency, the oscillator selection >> >> bits >> >> - without success. >> >> I hope I do some configuration mistakes, so please help me. >> >> >> >> The schematics for my hw-configuration, the (binary) log-file of the >> >> terminal and my changed configurations-files you can find here as zip >> >> file. >> >> >> >> >> >> >> >> >> >> If you need more informations, please drop me a mail. >> >> >> >> Greetings Thomas >> >> >> ------------------------------------------------------------------------------ >> >> Learn Graph Databases - Download FREE O'Reilly Book >> >> "Graph Databases" is the definitive new guide to graph databases and >> their >> >> applications. Written by three acclaimed leaders in the field, >> >> this first edition is now available. Download your free book today! >> >> >> >> _______________________________________________ >> >> Flashforth-devel mailing list >> >> Fla...@li... >> >> >> > >> ------------------------------------------------------------------------------ >> > Learn Graph Databases - Download FREE O'Reilly Book >> > "Graph Databases" is the definitive new guide to graph databases and >> their >> > applications. Written by three acclaimed leaders in the field, >> > this first edition is now available. Download your free book today! >> > http://p.sf.net/sfu/13534_NeoTech >> > _______________________________________________ >> > Flashforth-devel mailing list >> > Fla...@li... >> > https://lists.sourceforge.net/lists/listinfo/flashforth-devel >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> _______________________________________________ >> Flashforth-devel mailing list >> Fla...@li... >> https://lists.sourceforge.net/lists/listinfo/flashforth-devel >> > > > > -- > www.aloedb.org - database for aloes > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > > -- www.aloedb.org - database for aloes |
From: Peter J. <pe...@me...> - 2014-03-17 12:04:03
|
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. On 17/03/14 21:25, Thomas Buschhardt wrote: > Dear Peter, is HSPLL actually for crytals and resonators? I use a > oszillator (clock) see link in the first mail. But of course this > evening I'll give it a try. > Thomas > > > 2014-03-17 11:54 GMT+01:00 Peter Jacobs <pe...@me... > <mailto:pe...@me...>>: > > Can you simply turn on the PLL (OSC = HSPLL) to get a 16MHz sys-clock > frequency? I've quite happily run a PIC18F2520 at 38400 baud with a > 4MHz crystal and the PLL active. > Peter J. > > > On 17/03/14 18:33, Herman Attila wrote: > > Hi Thomas, > > > > Maybe your problem comes from low Osc-frequency/baudrate ratio. > Using 4MHz osc freq. the controller generates the 38400kbs with > 10% error. Try to use higher osc freq. or lower baudrate. > Otherwise I recommend you to use 18F26K22 or other xxk22 > controllers. They have well configurable internal oscillator and > have several further excellent features. > > > > BR > > Attila > > > > ----- Eredeti üzenet ----- > > Feladó: Thomas Buschhardt <bus...@gm... > <mailto:bus...@gm...>> > > Dátum: Hétfo", Március 17, 2014 8:32 > > Tárgy: [Flashforth-devel] strange answer from UART > > Címzett: Fla...@li... > <mailto:Fla...@li...> > > > > > >> Dear Mikael and mailing listeners, > >> > >> I desperated, I got some strange signs back from the PIC. In my > >> despair - I > >> installed even MS Windows, to see whether my usb-2-serial > adapter is broken > >> - but the program "Hyperterminal" shows the same results. > >> > >> Here is my configuration: > >> > >> PIC18F2620 > >> 4 MHz Oscillator Link to > >> Oszillator<> > >> MAX232 > >> FD-USB2Serial-Adapter > >> > >> The programing - process runs well with my PICKIT2. When the > PIC gets > >> power > >> its send the same strange signs, and if I blind input "1 2 3" > (to the > >> stack) in the terminal, I got a answer - that could be the > right one. > >> --snip-- > >> 38400 - 8 - N - 1 > >> ¦¬¡³¸¦¯²´¨ .Z(° °©£±~ S( S(' > >> ¦¬¡³¸¦¯²´¨ .Z(° °©£±~ S( S(' > >> ¦¬¡³¨¦¯²´¸ .Z(° °©£'¸ S( S(' > >> ± ² ³ ± ² ³ Y" S( > >> --snip-- > >> Here I restart 3 times the PIC and input "1 2 3" and get back > "± ² ³ Y" > >> S(". > >> > >> I changed the baudrate, oszillator frequency, the oscillator > selection > >> bits > >> - without success. > >> I hope I do some configuration mistakes, so please help me. > >> > >> The schematics for my hw-configuration, the (binary) log-file > of the > >> terminal and my changed configurations-files you can find here > as zip > >> file. > >> > >> > >> > >> > >> If you need more informations, please drop me a mail. > >> > >> Greetings Thomas > >> > ------------------------------------------------------------------------------ > >> Learn Graph Databases - Download FREE O'Reilly Book > >> "Graph Databases" is the definitive new guide to graph > databases and their > >> applications. Written by three acclaimed leaders in the field, > >> this first edition is now available. Download your free book today! > >> > >> _______________________________________________ > >> Flashforth-devel mailing list > >> Fla...@li... > <mailto:Fla...@li...> > >> > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases > and their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/13534_NeoTech > > _______________________________________________ > > Flashforth-devel mailing list > > Fla...@li... > <mailto:Fla...@li...> > > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases > and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > <mailto:Fla...@li...> > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > > > > > -- > www.aloedb.org <http://www.aloedb.org> - database for aloes |
From: Thomas B. <bus...@gm...> - 2014-03-17 11:25:20
|
Dear Peter, is HSPLL actually for crytals and resonators? I use a oszillator (clock) see link in the first mail. But of course this evening I'll give it a try. Thomas 2014-03-17 11:54 GMT+01:00 Peter Jacobs <pe...@me...>: > Can you simply turn on the PLL (OSC = HSPLL) to get a 16MHz sys-clock > frequency? I've quite happily run a PIC18F2520 at 38400 baud with a > 4MHz crystal and the PLL active. > Peter J. > > > On 17/03/14 18:33, Herman Attila wrote: > > Hi Thomas, > > > > Maybe your problem comes from low Osc-frequency/baudrate ratio. Using > 4MHz osc freq. the controller generates the 38400kbs with 10% error. Try to > use higher osc freq. or lower baudrate. Otherwise I recommend you to use > 18F26K22 or other xxk22 controllers. They have well configurable internal > oscillator and have several further excellent features. > > > > BR > > Attila > > > > ----- Eredeti üzenet ----- > > Feladó: Thomas Buschhardt <bus...@gm...> > > Dátum: Hétfő, Március 17, 2014 8:32 > > Tárgy: [Flashforth-devel] strange answer from UART > > Címzett: Fla...@li... > > > > > >> Dear Mikael and mailing listeners, > >> > >> I desperated, I got some strange signs back from the PIC. In my > >> despair - I > >> installed even MS Windows, to see whether my usb-2-serial adapter is > broken > >> - but the program "Hyperterminal" shows the same results. > >> > >> Here is my configuration: > >> > >> PIC18F2620 > >> 4 MHz Oscillator Link to > >> Oszillator<> > >> MAX232 > >> FD-USB2Serial-Adapter > >> > >> The programing - process runs well with my PICKIT2. When the PIC gets > >> power > >> its send the same strange signs, and if I blind input "1 2 3" (to the > >> stack) in the terminal, I got a answer - that could be the right one. > >> --snip-- > >> 38400 - 8 - N - 1 > >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ > >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ > >> ¦¬¡³¨¦¯²´¸ •ް °©£‘¸ Š Š‘ > >> ± ² ³ ± ² ³ Ÿ Š > >> --snip-- > >> Here I restart 3 times the PIC and input "1 2 3" and get back "± ² ³ Ÿ > >> Š". > >> > >> I changed the baudrate, oszillator frequency, the oscillator selection > >> bits > >> - without success. > >> I hope I do some configuration mistakes, so please help me. > >> > >> The schematics for my hw-configuration, the (binary) log-file of the > >> terminal and my changed configurations-files you can find here as zip > >> file. > >> > >> > >> > >> > >> If you need more informations, please drop me a mail. > >> > >> Greetings Thomas > >> > ------------------------------------------------------------------------------ > >> Learn Graph Databases - Download FREE O'Reilly Book > >> "Graph Databases" is the definitive new guide to graph databases and > their > >> applications. Written by three acclaimed leaders in the field, > >> this first edition is now available. Download your free book today! > >> > >> _______________________________________________ > >> Flashforth-devel mailing list > >> Fla...@li... > >> > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/13534_NeoTech > > _______________________________________________ > > Flashforth-devel mailing list > > Fla...@li... > > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel > -- www.aloedb.org - database for aloes |
From: Peter J. <pe...@me...> - 2014-03-17 10:54:35
|
Can you simply turn on the PLL (OSC = HSPLL) to get a 16MHz sys-clock frequency? I've quite happily run a PIC18F2520 at 38400 baud with a 4MHz crystal and the PLL active. Peter J. On 17/03/14 18:33, Herman Attila wrote: > Hi Thomas, > > Maybe your problem comes from low Osc-frequency/baudrate ratio. Using 4MHz osc freq. the controller generates the 38400kbs with 10% error. Try to use higher osc freq. or lower baudrate. Otherwise I recommend you to use 18F26K22 or other xxk22 controllers. They have well configurable internal oscillator and have several further excellent features. > > BR > Attila > > ----- Eredeti üzenet ----- > Feladó: Thomas Buschhardt <bus...@gm...> > Dátum: Hétfő, Március 17, 2014 8:32 > Tárgy: [Flashforth-devel] strange answer from UART > Címzett: Fla...@li... > > >> Dear Mikael and mailing listeners, >> >> I desperated, I got some strange signs back from the PIC. In my >> despair - I >> installed even MS Windows, to see whether my usb-2-serial adapter is broken >> - but the program "Hyperterminal" shows the same results. >> >> Here is my configuration: >> >> PIC18F2620 >> 4 MHz Oscillator Link to >> Oszillator<> >> MAX232 >> FD-USB2Serial-Adapter >> >> The programing - process runs well with my PICKIT2. When the PIC gets >> power >> its send the same strange signs, and if I blind input "1 2 3" (to the >> stack) in the terminal, I got a answer - that could be the right one. >> --snip-- >> 38400 - 8 - N - 1 >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ >> ¦¬¡³¨¦¯²´¸ •ް °©£‘¸ Š Š‘ >> ± ² ³ ± ² ³ Ÿ Š >> --snip-- >> Here I restart 3 times the PIC and input "1 2 3" and get back "± ² ³ Ÿ >> Š". >> >> I changed the baudrate, oszillator frequency, the oscillator selection >> bits >> - without success. >> I hope I do some configuration mistakes, so please help me. >> >> The schematics for my hw-configuration, the (binary) log-file of the >> terminal and my changed configurations-files you can find here as zip >> file. >> >> >> >> >> If you need more informations, please drop me a mail. >> >> Greetings Thomas >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> >> _______________________________________________ >> Flashforth-devel mailing list >> Fla...@li... >> > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel |
From: Mikael N. <mik...@pp...> - 2014-03-17 09:05:37
|
Hi, I think 9600 baud should work. Mikael On 17.03.2014 10:33, Herman Attila wrote: > Hi Thomas, > > Maybe your problem comes from low Osc-frequency/baudrate ratio. Using 4MHz osc freq. the controller generates the 38400kbs with 10% error. Try to use higher osc freq. or lower baudrate. Otherwise I recommend you to use 18F26K22 or other xxk22 controllers. They have well configurable internal oscillator and have several further excellent features. > > BR > Attila > > ----- Eredeti üzenet ----- > Feladó: Thomas Buschhardt <bus...@gm...> > Dátum: Hétfő, Március 17, 2014 8:32 > Tárgy: [Flashforth-devel] strange answer from UART > Címzett: Fla...@li... > > >> Dear Mikael and mailing listeners, >> >> I desperated, I got some strange signs back from the PIC. In my >> despair - I >> installed even MS Windows, to see whether my usb-2-serial adapter is broken >> - but the program "Hyperterminal" shows the same results. >> >> Here is my configuration: >> >> PIC18F2620 >> 4 MHz Oscillator Link to >> Oszillator<> >> MAX232 >> FD-USB2Serial-Adapter >> >> The programing - process runs well with my PICKIT2. When the PIC gets >> power >> its send the same strange signs, and if I blind input "1 2 3" (to the >> stack) in the terminal, I got a answer - that could be the right one. >> --snip-- >> 38400 - 8 - N - 1 >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ >> ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ >> ¦¬¡³¨¦¯²´¸ •ް °©£‘¸ Š Š‘ >> ± ² ³ ± ² ³ Ÿ Š >> --snip-- >> Here I restart 3 times the PIC and input "1 2 3" and get back "± ² ³ Ÿ >> Š". >> >> I changed the baudrate, oszillator frequency, the oscillator selection >> bits >> - without success. >> I hope I do some configuration mistakes, so please help me. >> >> The schematics for my hw-configuration, the (binary) log-file of the >> terminal and my changed configurations-files you can find here as zip >> file. >> >> >> >> >> If you need more informations, please drop me a mail. >> >> Greetings Thomas >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> >> _______________________________________________ >> Flashforth-devel mailing list >> Fla...@li... >> > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel |
From: Herman A. <exp...@vn...> - 2014-03-17 08:33:46
|
Hi Thomas, Maybe your problem comes from low Osc-frequency/baudrate ratio. Using 4MHz osc freq. the controller generates the 38400kbs with 10% error. Try to use higher osc freq. or lower baudrate. Otherwise I recommend you to use 18F26K22 or other xxk22 controllers. They have well configurable internal oscillator and have several further excellent features. BR Attila ----- Eredeti üzenet ----- Feladó: Thomas Buschhardt <bus...@gm...> Dátum: Hétfő, Március 17, 2014 8:32 Tárgy: [Flashforth-devel] strange answer from UART Címzett: Fla...@li... > Dear Mikael and mailing listeners, > > I desperated, I got some strange signs back from the PIC. In my > despair - I > installed even MS Windows, to see whether my usb-2-serial adapter is broken > - but the program "Hyperterminal" shows the same results. > > Here is my configuration: > > PIC18F2620 > 4 MHz Oscillator Link to > Oszillator<> > MAX232 > FD-USB2Serial-Adapter > > The programing - process runs well with my PICKIT2. When the PIC gets > power > its send the same strange signs, and if I blind input "1 2 3" (to the > stack) in the terminal, I got a answer - that could be the right one. > --snip-- > 38400 - 8 - N - 1 > ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ > ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ > ¦¬¡³¨¦¯²´¸ •ް °©£‘¸ Š Š‘ > ± ² ³ ± ² ³ Ÿ Š > --snip-- > Here I restart 3 times the PIC and input "1 2 3" and get back "± ² ³ Ÿ > Š". > > I changed the baudrate, oszillator frequency, the oscillator selection > bits > - without success. > I hope I do some configuration mistakes, so please help me. > > The schematics for my hw-configuration, the (binary) log-file of the > terminal and my changed configurations-files you can find here as zip > file. > > > > > If you need more informations, please drop me a mail. > > Greetings Thomas > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > |
From: Thomas B. <bus...@gm...> - 2014-03-17 07:32:14
|
Dear Mikael and mailing listeners, I desperated, I got some strange signs back from the PIC. In my despair - I installed even MS Windows, to see whether my usb-2-serial adapter is broken - but the program "Hyperterminal" shows the same results. Here is my configuration: PIC18F2620 4 MHz Oscillator Link to Oszillator<http://www.reichelt.de/Oszillatoren/OSZI-4-000000/3//index.html?ACTION=3&GROUPID=3174&ARTICLE=13706&SHOW=1&OFFSET=500&> MAX232 FD-USB2Serial-Adapter The programing - process runs well with my PICKIT2. When the PIC gets power its send the same strange signs, and if I blind input "1 2 3" (to the stack) in the terminal, I got a answer - that could be the right one. --snip-- 38400 - 8 - N - 1 ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ ¦¬¡³¸¦¯²´¨ •ް °©£±˜ Š Š‘ ¦¬¡³¨¦¯²´¸ •ް °©£‘¸ Š Š‘ ± ² ³ ± ² ³ Ÿ Š --snip-- Here I restart 3 times the PIC and input "1 2 3" and get back "± ² ³ Ÿ Š". I changed the baudrate, oszillator frequency, the oscillator selection bits - without success. I hope I do some configuration mistakes, so please help me. The schematics for my hw-configuration, the (binary) log-file of the terminal and my changed configurations-files you can find here as zip file. http://wikisend.com/download/262322/pic.zip If you need more informations, please drop me a mail. Greetings Thomas |
From: Mikael N. <mik...@pp...> - 2014-03-14 12:09:58
|
Hi Thomas, Christmas comes early this year :-) FlashForth is a 16 bit implementation so ! always stores 16-bits. : w! ! ; And Forth is also extensible so here is hex. : hex. base @ >r [char] $ emit hex u. r> base ! ; BR Mikael On 03/14/2014 01:55 PM, Thomas Buschhardt wrote: > Hallo, > > I have some wishes for flashforth (I know christmas is coming late) - > maybe you can help me out: > > Definitions taken from gforth: > |w!| /w c-addr – / gforth "w-store" > Store the bottom 16 bits of /w/ at /c_addr/. > |hex.|/u –/gforth "hex." > Display/u/ as an unsigned hex number, prefixed with a "$" andfollowed by a space. > Thank you > and a happy christm... äh weekend > Thomas |