Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20771

BASCOM-AVR : day of Week and Month : NEWTOPIC

$
0
0
Can anybody help my with a problem that I have to view the day and month. the day of the week is working but the month as a "word" will not work. my test code that I use is: (what's wrong) $regfile = "m32def.dat" ' specify the used micro $crystal = 8000000 ' used crystal frequency $baud = 19200 ' use baud rate $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space $sim Config Clock = Soft ' we use build in clock Config Date = Dmy , Separator = - ' ANSI-Format Enable Interrupts Dim Bweekday As Byte , Strweekday As String * 9 Dim Bmonthday As Byte , Strmonthday As String * 12 _day = 23 : _month = 01 : _year = 13 ' Load RTC-Clock for example - testing Bweekday = Dayofweek() Strweekday = Lookupstr(bweekday , Weekdays) Bmonthday = Dayofweek() Strmonthday = Lookupstr(bmonthday , Monthdays) Print Strweekday ; " " ; _day ; " " ; Strmonthday End 'end program Weekdays: Data "MAANDAG" , "DINSDAG" , "WOENSDAG" , "DONDERDAG" , "VRIJDAG" , "ZATERDAG" , "ZONDAG" Monthdays: Data "JANUARI" , "FEBRUARI" , "MAART" , "APRIL" , "MEI" , "JUNI" , "JULI" , "AUGUSTUS" , "SEBTEMBER" , "OKTOBER" , "NOVEMBER" , "DECEMBER" [b:b6c114d317][color=red:b6c114d317](BASCOM-AVR version : 2.0.7.6 )[/b:b6c114d317][/color:b6c114d317]

Viewing all articles
Browse latest Browse all 20771

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>