Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Example for ATTINY167

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

Bascom Member



Joined: 06 May 2006
Posts: 88

canada.gif
PostPosted: Tue May 19, 2015 11:52 pm    Post subject: Example for ATTINY167 Reply with quote

Hello,
I am trying to find ATTINY167.bas in the sample folder but can't find it. Is the version I have too old?
I am presently using Bascom Version 2.0.7.7 document build 52
Thanks,
gerrysc

(BASCOM-AVR version : 2..0.7.7 , Latest : 2.0.7.8 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Wed May 20, 2015 9:23 am    Post subject: Reply with quote

it is in samples\chips named attiny167.bas

here it is :

Code:
$regfile = "attiny167.dat"
$crystal = 8000000
$hwstack = 24
$swstack = 16
$framesize = 32
$baud = 115200
Config Clockdiv = 1

Config Porta.1 = Output                                     'TX must be made an output
Porta.0 = 1                                                 'pull up on RX

Do
  Print "Hello world"
  If Inkey() <> 0 Then
     Print "RX test"
  End If
  Waitms 500
Loop
End


if it works depends on your version. just look it up in the history.txt
Samples are located in the user documents folder. Use File, Open Sample to get this this folder.

_________________
Mark
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