Search found 49 matches

by barewires
Sat Sep 16, 2017 5:26 pm
Forum: ST Microelectronics
Topic: STM8S103F3 Development Board (HCDVBD0034)
Replies: 22
Views: 8888

Re: STM8S103F3 Development Board (HCDVBD0034)

Any ideas on calibrating TIM1 to give more accurate frequencies? 32kHz = 31.75
by barewires
Mon Jul 24, 2017 2:21 pm
Forum: Sensors
Topic: W1209 Temperature control Switch (HCTHER0006)
Replies: 27
Views: 57447

Re: W1209 Temperature control Switch (HCTHER0006)

Sorry for the duplicated information in this thread, but it is current. It is typical that the 4 wire SWIM programmer interface is rarely 1:1, always verify the positions of the signals. Equally important is Vdd which is determined by looking at the voltage regulator part number on the top side. The...
by barewires
Sat Jul 08, 2017 5:33 pm
Forum: ST Microelectronics
Topic: STM8S103F3 Development Board (HCDVBD0034)
Replies: 22
Views: 8888

Re: STM8S103F3 Development Board (HCDVBD0034)

Cool! Now I have simultaneous constant beeping on PD4, PWM on PC3 and low freq flashing LED on board and PB5.
Looks like I need a 3 chan scope (sic) or a working HC logic analyzer.:cry:
by barewires
Wed Jul 05, 2017 6:30 pm
Forum: ST Microelectronics
Topic: STM8S103F3 Development Board (HCDVBD0034)
Replies: 22
Views: 8888

Re: STM8S103F3 Development Board (HCDVBD0034)

FILE NVM : beep BEEP_CSR C! ; : 6lo 0 BEEP_CSR 6 B! ; \ bits 7 and 6 of BEEP_CSR $50F3 : 7lo 0 BEEP_CSR 7 B! ; \ are beep selection BEEPSEL : 6hi 1 BEEP_CSR 6 B! ; : 7hi 1 BEEP_CSR 7 B! ; : 32khz 0 beep 7hi 6lo ; : 16khz 0 beep 7lo 6hi ; : 500hz 30 beep 7lo 6lo ; : BEEPEN BEEP_CSR 5 B! ; RAM HAND To...
by barewires
Tue Jul 04, 2017 12:29 pm
Forum: ST Microelectronics
Topic: STM8S103F3 Development Board (HCDVBD0034)
Replies: 22
Views: 8888

Re: STM8S103F3 Development Board (HCDVBD0034)

Needing a variable frequency beeper, I found this works perfectly as a built-in hardware feature on the STM8S series. https://github.com/TG9541/stm8ef/wiki/Board-W1401 Save the contents below in a file called beeper.f From the eForth command line in picocom do ctrl-A, ctrl-S (for save) and the filen...
by barewires
Fri Jun 16, 2017 9:13 pm
Forum: Sensors
Topic: W1209 Temperature control Switch (HCTHER0006)
Replies: 27
Views: 57447

Re: W1209 Temperature control Switch (HCTHER0006)

Very interesting! Running 3.4.0 #8981 (Jul 11 2014) (Linux)
Latest files at https://github.com/TG9541/stm8ef/
I will use the latest hex files provided from now on and avoid the time wasted trying to compile locally.
by barewires
Thu Jun 15, 2017 10:33 am
Forum: ST Microelectronics
Topic: STM8S105K4 Development board (HCDVBD0018)
Replies: 6
Views: 13542

Re: STM8S105K4 Development board (HCDVBD0018)

Just got eForth working on the STM8S105K4. Check out my other parallel successes with the STM8S003 and STM8S103 http://forum.hobbycomponents.com/viewtopic.php?f=73&t=1900 http://forum.hobbycomponents.com/viewtopic.php?f=87&t=2177 http://forum.hobbycomponents.com/viewtopic.php?f=87&t=2178 http://foru...
by barewires
Wed Jun 14, 2017 1:09 pm
Forum: Sensors
Topic: W1209 Temperature control Switch (HCTHER0006)
Replies: 27
Views: 57447

Re: W1209 Temperature control Switch (HCTHER0006)

Having trouble compiling with SDCC recently I found an error in the Makefile. The -oout has to be changed to -o out as that is the output file designation. Download the code from: https://github.com/TG9541/stm8ef https://github.com/TG9541/stm8ef/releases cd ~/stm8flash/ echo "00 00 ff 00 ff 00 ff 00...
by barewires
Mon Jun 05, 2017 9:54 am
Forum: Sensors
Topic: W1209 Temperature control Switch (HCTHER0006)
Replies: 27
Views: 57447

Re: W1209 Temperature control Switch (HCTHER0006)

Yes I saw all of the details but didn't get it to work last week. The UART Dongles typically have 3.3 volt signal levels. RxD on a 5 volt system is OK but 5 volt TxD should possibly be reduced. A typical silicon diode drops 700 mV. Schottky diodes are about 150 - 450 mV so that is even worse. We hav...
by barewires
Sat Jun 03, 2017 1:01 pm
Forum: Sensors
Topic: W1209 Temperature control Switch (HCTHER0006)
Replies: 27
Views: 57447

Re: W1209 Temperature control Switch (HCTHER0006)

DUMP is a word apparently running on the HCTHER0006: In the W1209.ihx Intel hex file the ASCII characters are in the code for the word table. http://www.asciitable.com/ Flash resides at 8000 - 9FFF, 8000 - 807F are 32 Interrupt Vectors and code begins at 8080. HEX A000 8000 - decimal . 8192 ok https...