Anniyan_x
Member
hi im using a ST7lite49M mcu, im implementing a software UART using its auto reload timer. anyway i have written the code but it not working. i suspect my baud rate calculations are worng and this due to i dono/ i cannot confirm what speed is my cpu running. now thts the problem...like if it a PIC microchip,i know the Fosc/4 and few internal settings or prescalers ul noe wats the speed of per-instruction is running.. the cpu speed. but using a ST7 microcontroller i still cannot find out..how to calculate the clock speed or cpu speed..basicly im using ST7 internal 8M osc...and running at 3.3V... for an example wn i calculate a simple timer to turn on and off a led. the timing is not accurate...the results is based on 4M calculations...so im not sure how the 8M become 4M, even wn i set the internal RCosc to be divided by two..so 8M/2 = 4M, but the results 8M/2 = 4M, then 4M divide by 2..sumwhr it is divided by 2 again..ok it sok about al tht..just i wnat anyone who surely noes how calculate and set the clock speed..or have used ST7 muc,(STmicroelectronics)please feel free to tell how...mayb i missing sum importants data, though i read the datasheets..but the calculations always gets wrong, or i also not sure am i correct or not..