Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Problem with Printbin

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
MichaelB.

Bascom Member



Joined: 04 May 2017
Posts: 43

germany.gif
PostPosted: Wed Feb 12, 2020 5:05 pm    Post subject: Problem with Printbin Reply with quote

I run my program and wonder why it isnt executing.
Then i found in the Simulator that the program is Halt or Stuck ( view Picture )
When i let it run R25 is rapidly blinking in Red. i Tryed with some Assembler code like !CLR R25 at the Programline before, but it is Halting everytime at this position.
And i dont know why it is so.

Best Regards

(BASCOM-AVR version : 2.0.8.2 )
Back to top
View user's profile
MichaelB.

Bascom Member



Joined: 04 May 2017
Posts: 43

germany.gif
PostPosted: Wed Feb 12, 2020 8:04 pm    Post subject: Reply with quote

Here is the Test Code.
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1754

blank.gif
PostPosted: Wed Feb 12, 2020 8:36 pm    Post subject: Reply with quote

Don't worry, the buffer runs full, the simulator doesn't fire the UDRE-interrupt, thus it gets stuck.
In real life the code works.

Not sure if the simulator is designed to automatically fire said interrupts, to empty the buffer you can fire UDRE yourself in the simulator 'Interrupts' tab.
Back to top
View user's profile
MichaelB.

Bascom Member



Joined: 04 May 2017
Posts: 43

germany.gif
PostPosted: Thu Feb 13, 2020 12:57 pm    Post subject: Reply with quote

Weird....
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1754

blank.gif
PostPosted: Thu Feb 13, 2020 7:44 pm    Post subject: Reply with quote

MichaelB. wrote:
Weird....
The simulator is really useful, read the help what to expect and what not.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum