STM8S103F3P6 trouble

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
crystallin
Posts: 1
Joined: 14 Aug 2023 08:21

STM8S103F3P6 trouble

#1 Post by crystallin » 14 Aug 2023 08:25

I got an STM8S103F3P6 development board, I'm attempting to execute a typical linking-led application, but I'm not sure what I'm doing incorrectly. A LED was connected to PIN D3; the following is my code:


include
void
delay_ ms (uint16. _t ms) ;
void
delay_ _ms(uint16 _t ms) {
while
(ms- -) {
uint16_ t i;
for
(i = 0:i< ms; i++){
nop () ;
}
}
}
main()
{
GPI0D- >DDR |=0x03;
//PD3 as Output
GPI0D- >CR1 |=0x03:
//PD3 as Push Pull
while
GPI0D- >0DR|=(1

Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

Re: STM8S103F3P6 trouble

#2 Post by Thomas.Pahl@t-online.de » 16 Aug 2023 12:30

Last time i used microbasic for arm, it was for 32Bit Processors only.

Post Reply

Return to “mikroBasic PRO for ARM General”