Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

help about UPDI and Xtiny, Avr128DB28

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

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Sat Oct 23, 2021 1:17 pm    Post subject: help about UPDI and Xtiny, Avr128DB28 Reply with quote

hi all
I received my avr128DB28 , I looked for 1 simple example in the samples to try my updi interface, I have FTDI, and CP2102) but I didn't find anything that would suit me and that would be suitable for beginners with this µP series
-Turn on a diode ,
or
- send "hello word" on a LCD display

if someone could help me, the doc is 660 pages long, to turn on a diode it's a lot to read Wink

many thanks
I have the XTiny lib

my first tests are disastrous Crying or Very sad
JP


(BASCOM-AVR version : 2.0.8.4 )

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
SZTRAD

Bascom Member



Joined: 30 Dec 2019
Posts: 165

blank.gif
PostPosted: Sat Oct 23, 2021 2:07 pm    Post subject: Reply with quote

Hi
Mark's demos aren't working?
RS
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2262

blank.gif
PostPosted: Sat Oct 23, 2021 4:23 pm    Post subject: Re: help about UPDI and Xtiny, Avr128DB28 Reply with quote

Duval JP wrote:
my first tests are disastrous

It must have taken you ages to learn from your students how to pose questions that hold so little content.
Did you forget how this forum works?
Where's your code, where's your schematic, what hardware, what does not work, compiling, flashing or code execution?
Back to top
View user's profile
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Sat Oct 23, 2021 6:42 pm    Post subject: Reply with quote

@MWS I try on this forum to answer questions that users ask, not to return questions.
I would have liked a simple schematic and a simple piece of code
Good thing I don't wait for your sarcastic answers.

On my breadboard I had a bad ground contact
And hooray my little assembly works very well. For the future users I drew the principle. sorry no time to use proteus
[img]

and the code
Code:

'name                     : AVRX128db28-test.bas   modified for simple led test JP Duval
'copyright                : (c) 1995-2021, MCS Electronics
'purpose                  : demonstrates AVR128DB28
'micro                    : AVR128DB28
'suited for demo          : Yes now
'commercial addon needed  : yes
'--------------------------------------------------------------------------------
$regfile = "AVRX128db28.dat"

$crystal = 24000000
$hwstack = 40
$swstack = 40
$framesize = 40

'The AVRX series have more oscillator options
Config Osc = Enabled , Frequency = 24mhz
'set the system clock and prescaler
Config Sysclock = Int_osc , Prescale = 1


Led Alias Portd.7
Config Led = Output

' test port
Dim , Jbyte As Byte

Do
   For Jbyte = 1 To 4
      Set Led
      Waitms 400
      Reset Led
      Waitms 400
   Next
   Wait 1
Loop
End


then the result[img]

the green wire is not used
only the yellow one to UPDI
JP Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2262

blank.gif
PostPosted: Sat Oct 23, 2021 9:20 pm    Post subject: Reply with quote

Duval JP wrote:
@MWS I try on this forum to answer questions that users ask, not to return questions.

Asking the correct questions is my way to help, if it's not up to your taste, then wait for other replies.
Quote:
Good thing I don't wait for your sarcastic answers.

Sarcasm served as still friendly hint to have you think about your 'bohoohohooo, it's broken, help me'.
You're a longtime user of this forum to know better.
Quote:
And hooray my little assembly works very well.

Is this the answer to my questions?
Then they seem to have helped, and would it be only by making you double check the hardware.

Besides, decoupling capacitors are completely missing, 4.2 page 21 of the data sheet.
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