Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Swap with software uart

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

Bascom Member



Joined: 25 Jul 2021
Posts: 1

PostPosted: Sun Jul 25, 2021 3:21 pm    Post subject: Swap with software uart Reply with quote

Hey. Software uart behaves strangely in my opinion when using the "Swap" command. Can anyone test?

The circuit I am using is ATtiny85




Dim W As Byte , R As Byte
Open "comb.0:2400,8,n,1,inverted " For Output As #1
W = 0 : R = 1

Do
'Print , W ; R
Swap W , R
Print#1 , W ; " " ; R
Loop

' Answer is 1 0
' Answer is 48 46
' Answer is 46 48
' Answer is 48 46 ...?

(BASCOM-AVR version : 2.0.8.4 )
Back to top
View user's profile
laborratte

Bascom Expert



Joined: 27 Jul 2005
Posts: 299
Location: Berlin

germany.gif
PostPosted: Mon Jul 26, 2021 12:33 pm    Post subject: Reply with quote

<deleted>
Back to top
View user's profile
Evert :-)

Bascom Expert



Joined: 18 Feb 2005
Posts: 2156

netherlands.gif
PostPosted: Mon Jul 26, 2021 6:52 pm    Post subject: Reply with quote

Can you show us your hw and sw stack?
I think the sw stack is set to low.

_________________
www.evertdekker.com Bascom code vault
Back to top
View user's profile Visit poster's website
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