Author |
Message |
Topic: SPI EEPROM Problem |
Frankeman
Replies: 13
Views: 2328
|
Forum: BASCOM-AVR Archive Posted: Wed Sep 22, 2004 7:39 pm Subject: SPI EEPROM Problem |
Hi,
I simplyfied your code, but can't test it because i do not have spi hardware, is it working now.
Why do you control the SS pin yourself ?
The WAITMS statements can probably be removed !
... |
Topic: string elements |
Frankeman
Replies: 3
Views: 1419
|
Forum: BASCOM-AVR Archive Posted: Wed Sep 22, 2004 4:42 pm Subject: string elements |
Yes, but only in Bascom AVR.
In Bascom 8051 this code wil not compile.
Frank. |
Topic: Hyperterminal Hangs? |
Frankeman
Replies: 6
Views: 3135
|
Forum: Various Posted: Tue Sep 21, 2004 6:31 pm Subject: Hyperterminal Hangs? |
what happens if you run this.
I get compiler errors ,Your example is Bascom AVR code i use Bascom 8051.
The program works fine, hyperterminal don't hangs. |
Topic: Hyperterminal Hangs? |
Frankeman
Replies: 6
Views: 3135
|
Forum: Various Posted: Mon Sep 20, 2004 10:21 pm Subject: Hyperterminal Hangs? |
Hi Phil,
I wrote a little test program
$regfile = "8052.dat"
$baud = 57600
$crystal = 11059200
dim a as long
do
print a
incr a
loop
end
With this received on a P4 ... |
Topic: Hyperterminal Hangs? |
Frankeman
Replies: 6
Views: 3135
|
Forum: Various Posted: Sun Sep 19, 2004 9:16 am Subject: Hyperterminal Hangs? |
Hi,
Do you know when HyperTerminal hangs or is it random ?
Is it possible that you send invalid esc codes ?
Frank. |
Topic: DTMF tone generation using 89s8252 |
Frankeman
Replies: 1
Views: 2506
|
Forum: BASCOM-8051 Archive Posted: Fri Sep 17, 2004 10:22 pm Subject: DTMF tone generation using 89s8252 |
Hi,
I don't know if it is possible in Bascom, with ASM it can.
Philips has an example on http://www.semiconductors.philips.com/markets/mms/products/microcontrollers/support/software_download/8051/
... |
Topic: I2C Clock speed - How to control ?? |
Frankeman
Replies: 1
Views: 1604
|
Forum: BASCOM-AVR Archive Posted: Wed Sep 15, 2004 10:16 pm Subject: I2C Clock speed - How to control ?? |
Hi,
You can use CONFIG I2CDELAY = value
By default a value of 5 is used, this will give a 200 kHZ clock.
So standard the I2C is working at 200kHz and you don't have to do anything.
Frank. |
Topic: string elements |
Frankeman
Replies: 3
Views: 1419
|
Forum: BASCOM-AVR Archive Posted: Wed Sep 15, 2004 10:07 pm Subject: string elements |
Hi, with the example you can change the original string.
Dim S as String * 10
S = "1233567890"
Print S
Mid(S, 4, 1) = "4"
Print S
End
End |
Topic: help on bascom variable type |
Frankeman
Replies: 1
Views: 2083
|
Forum: BASCOM-8051 Archive Posted: Wed Sep 15, 2004 12:36 pm Subject: help on bascom variable type |
The data you defined are integers (only an integer can go negative).
To use integers the values must end with the %-sign
Dta:
Data 0%, 1%, -1%, 0%, -1%, 0%, 0%, 1%, 1%, 0%, 0%, -1%, 0%, -1%, ... |
Topic: I miss Overlay statement in BASCOM 8051 |
Frankeman
Replies: 4
Views: 2610
|
Forum: BASCOM-8051 Archive Posted: Wed Sep 15, 2004 12:06 pm Subject: I miss Overlay statement in BASCOM 8051 |
In your specific situation ERASE is useless.
But i am sure that the next version of Bascom 8051 supports overlay (because the developer of Bacom tolt me that in private mail about 2 years ago).
In t ... |
Topic: I miss Overlay statement in BASCOM 8051 |
Frankeman
Replies: 4
Views: 2610
|
Forum: BASCOM-8051 Archive Posted: Wed Sep 15, 2004 8:10 am Subject: I miss Overlay statement in BASCOM 8051 |
@Vilko
You can use variabele space multiple times, look at the ERASE statement.
Frank. |
Topic: Help simulate timer0 with bascom avr |
Frankeman
Replies: 1
Views: 1050
|
Forum: BASCOM-AVR Archive Posted: Tue Sep 14, 2004 10:17 pm Subject: Help simulate timer0 with bascom avr |
I tested all the chips with your program, and i can comfirm that only the M16 don't respond to an interrupt in the simulator.
So Mark (the developer of Bascom) has to jump in at this point.
Fran ... |
Topic: Best way to do modulus? |
Frankeman
Replies: 8
Views: 2214
|
Forum: BASCOM-AVR Archive Posted: Tue Sep 14, 2004 9:54 pm Subject: Best way to do modulus? |
Thanks.. Unfortunately its not base two, and 'A' is the sum of four bytes.. so I wont be using integers
I don't understand you, the sum of four bytes is maximum 1024 so you must use an integer ... |
Topic: Sending 16Bit serial Data |
Frankeman
Replies: 9
Views: 3054
|
Forum: BASCOM-AVR Archive Posted: Tue Sep 14, 2004 9:31 pm Subject: Sending 16Bit serial Data |
Normaly you send values not hex codes.
The little example shows how to do this.
Dim B(13) As Byte
B(1) = 65 'decimal
B(2) = &h42 'hexadecimal
B(3) = & ... |
Topic: Sending 16Bit serial Data |
Frankeman
Replies: 9
Views: 3054
|
Forum: BASCOM-AVR Archive Posted: Mon Sep 13, 2004 6:39 pm Subject: Sending 16Bit serial Data |
Hi,
When you use the hardeware SPI it is possible to set what bit is send first MSB or LSB.
Maybe the bytes are send in reverse, this is easy to check for you.
If not fill an array with known val ... |
|