cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S001J3 assembler

johnbe
Associate II

Hi. I'm writing assembler code for the STM8S001j3. The data sheet recommends setting ports E5 & F4 to lo for power useage & EMC reasons. However the .asm & .inc files called up do not define ports E or F. The same goes for the peripheral enable  registers PCKENR1 & PCKENR2. This is using STVD 4.3.12.

What am I missing ? (apart from not using C). 

4 REPLIES 4

Find a part appropriate INC file, or add the EQU in the form expect?

 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
johnbe
Associate II

Thanks. I had assumed the files in the latest STVD would include the full data on their devices but apparently not. I've now edited a set of .asm & .inc files to cover those ports. The peripheral enable registers were in fact there but somewhere in the documentation I saw it refered to them as PCKENR and not CLK_PCKENR.

Unfortunately, as I've previously noted, the STM8 is pretty much a dead-end / abandoned architecture. Most engineering resources being focused on the ARM lines, where the revenue is. I don't know if there are better forums, or active github related to STM8 parts and issues.

STVD 4.3.12 is from 2017

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
johnbe
Associate II

Thank for that insight and thanks for making me feel even older than I actually am !