Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 270 matches
www.mcselec.com Forum Index
Author Message
  Topic: Interrupt horror
oe9vfj

Replies: 5
Views: 1581

PostForum: BASCOM-AVR Archive   Posted: Fri Nov 05, 2004 8:45 am   Subject: Interrupt horror
Hi,

use

Mcucr = &B1110


instead of 'Out Mcucr , &B1110'

OUT works with Memory addresses.

You can use also

Out &H55, &B1110

because MCUCR is mapped to Memory-Addr ...
  Topic: Decimal Places
oe9vfj

Replies: 7
Views: 1959

PostForum: BASCOM-AVR Archive   Posted: Tue Nov 02, 2004 2:31 pm   Subject: Decimal Places
Hi,

If you use like this:


dim s1 as Single
dim s2 as Single


s1 = 12.345678
print s1

s2 = s1 * 100
s2 = round(s2)
s2 = s2 / 100
print s2
end


you get 12.349999425 for ...
  Topic: Bascom - feature request 2
oe9vfj

Replies: 6
Views: 1828

PostForum: BASCOM-AVR Archive   Posted: Fri Oct 15, 2004 2:24 pm   Subject: Bascom - feature request 2
Hi Rok,

BASCOM-AVR has no free registers in the way, you want to use it. Crying or Very sad

Registers r0 to r9 are used for BASCOM internal information at runtime.
You can read details about that in the ...
  Topic: Flush/clear buffer - PROBLEM SOLVED
oe9vfj

Replies: 4
Views: 1334

PostForum: BASCOM-AVR Archive   Posted: Mon Oct 11, 2004 10:05 am   Subject: Flush/clear buffer - PROBLEM SOLVED
Hi,

A Config SerialIN use there variables:

Dim _rs232inbuf0(20) As Byte , _rs_head_ptr0 As Byte , _rs_tail_ptr0 As Byte

_rs232inbuf0 is the buffer itself
_rs_head_ptr0 is a pointer to the ...
  Topic: RS232, hard or soft?
oe9vfj

Replies: 5
Views: 2605

PostForum: BASCOM-AVR Archive   Posted: Wed Sep 15, 2004 10:38 am   Subject: RS232, hard or soft?
I would use INKEY, but don't know exactly the difference between INKEY and INPUTBIN according to your problem.
I think, to read to a BYTE is is the same. With INPUTBIN you can read to other variables ...
  Topic: RS232, hard or soft?
oe9vfj

Replies: 5
Views: 2605

PostForum: BASCOM-AVR Archive   Posted: Wed Sep 15, 2004 8:28 am   Subject: RS232, hard or soft?
Hi,

As far as I know, Soft-UART has no buffer. You must call the INKEY() before the char receives.

I advise you to use the Hardware-UART of the chip and config a small Serialin-buffer. This giv ...
  Topic: Best way to do modulus?
oe9vfj

Replies: 8
Views: 2147

PostForum: BASCOM-AVR Archive   Posted: Wed Sep 15, 2004 7:53 am   Subject: Best way to do modulus?
Hi,

MOD 256 is the LS-Byte of a number (Word, Integer, Long)

So, there are two simple ways for MOD 256

1. Get the LOW-Byte of a Word/Integer/Long
2. Overlay a Byte at the Word/Integer/Long
...
  Topic: help on proper usage of "open file for input as binary&
oe9vfj

Replies: 4
Views: 1607

PostForum: BASCOM-AVR Archive   Posted: Sat Sep 11, 2004 6:31 pm   Subject: help on proper usage of "open file for input as binary&
Hi,

This was only the part to handle a file in binary mode.

You need a driver for the Stoarage medium (Compact-Flash, MMC-Card, Hard-Disk ...) and AVR-DOS. AVR-DOS is a library, which provides a ...
  Topic: help on proper usage of "open file for input as binary&
oe9vfj

Replies: 4
Views: 1607

PostForum: BASCOM-AVR Archive   Posted: Fri Sep 10, 2004 9:03 am   Subject: help on proper usage of "open file for input as binary&
Hi,

Here a small example:


Dim b1 as Byte
Open "Test.bmp" for Binary as #10
If gbDOSError = 0 then
While eof(10) = 0
Get #10, b1
Print chr&# ...
  Topic: Two digit counter(LCD)
oe9vfj

Replies: 2
Views: 1377

PostForum: BASCOM-AVR Archive   Posted: Thu Sep 02, 2004 7:01 am   Subject: Two digit counter(LCD)
Hi,

Check following, it is not very elegant, but it works:



Dim str1 as String * 3
dim b1 as byte

cls
for b1 = 0 to 99
str1 = "0" + str(b1)
home
LCD right( ...
  Topic: SD MMC CARDS
oe9vfj

Replies: 4
Views: 3241

PostForum: AVR-DOS   Posted: Wed Aug 25, 2004 7:37 am   Subject: SD MMC CARDS
AVR-DOS needs in minimum configuration appr. 1200 Bytes SRAM, so you can work with a Mega32 with 2 kB SRAM, if you have not to much SRAM-needing for your application. Please consider, that for Stacks ...
  Topic: SD MMC CARDS
oe9vfj

Replies: 4
Views: 3241

PostForum: AVR-DOS   Posted: Thu Aug 05, 2004 12:43 pm   Subject: SD MMC CARDS
Hi,

You can find more info about AVR-DOS on
http://members.aon.at/voegel
  Topic: Hello...
oe9vfj

Replies: 2
Views: 1555

PostForum: BASCOM-AVR Archive   Posted: Sat Jul 24, 2004 8:19 am   Subject: Hello...
You an download it from http://www.mcselec.com/download_avr.htm
For the AT90S2313 you can use the Demo-Version, because with the Demo-Version you can compile Code up to 2 KB.

Regards Josef
  Topic: AVR Conversion
oe9vfj

Replies: 1
Views: 1288

PostForum: BASCOM-AVR Archive   Posted: Tue Jun 29, 2004 6:42 am   Subject: AVR Conversion
You can find it at the pint "Mature Products " at the page you linked. As far as I know, there was no renaming form ATMAL to their controllers. The have a lot of new controllers with new/other feature ...
  Topic: Problem with Error Message: Out of Range
oe9vfj

Replies: 2
Views: 1733

PostForum: BASCOM-AVR Archive   Posted: Thu Jun 17, 2004 6:41 am   Subject: Problem with Error Message: Out of Range
You have in your code a RCALL _SENDSTRCONSTO, which gives a jump-offset of more than 2K.
Check your used libraries for such a statement and change it to
CALL _SENDSTRCONSTO and recompile it.

reg ...
 
Page 18 of 18 Goto page Previous  1, 2, 3 ... 16, 17, 18
All times are GMT + 1 Hour
Jump to: