Questions tagged [bascom]

The Bascom is the original Windows BASIC Compiler for the AVR and 8051 family.

It's designed to run on W95/W98/NT/W2000, XP, and Vista.The BACOM BASIC Compiler features structured BASIC with labels and structured programming with IF-THEN-ELSE-END IF, DO-LOOP, WHILE-WEND, and SELECT-CASE. Compiled programs work with all 8051 and AVR microprocessors that have internal memory.

5 questions
1
vote
1 answer

How to show a long sentence on character LCD by using bascom?

I want to show a long message that going to differ every time and it's 3 lines or less. This message comes from Sim900. I cant show the whole sentence on my 4x20 lcd. how can I print it in several lines?
0
votes
0 answers

Store Receive bytes from UART as a string in BASCOM AVR

I'm working on receive interrupt uart and I wanna store all of data as a string . I also catch data (one by one) byte until receiving ETX . When I catch ETX ,it means end of datas. unfortunately, my code doesn't work correctly and I catch incomplete…
0
votes
2 answers

when DC supply is given to ATmega16 micro-controller, I want it to continue functioning from the same state, from where it was stopped

I am writing my code in BASCOM-AVR. It has 2 if loops and 1 for loop inside the 1st if loop. I will give DC supply to ATmega16 controller. Now, what I want is, if the power is cut off when code is in for loop, the functioning should continue from…
-2
votes
1 answer

How to program MCU to work with NRF24L01 module in Bascom language?

I want to connect several devices together with this RF module. But it's hard for me to understand the Bascom program. Could you please tell what the main idea is or explain in general for me? Do you know any reference or tutorial video that can…
-7
votes
1 answer

please explain how this program worked

$crystal = 12000000 $regfile = "89c51cc.dat" Dim A As Byte Dim D As Byte Dim C As Byte P1 = 255 P3 = 0 P2 = 0 Main: Control: If P1 = &B11111110 Then Waitms 100 P2 = &B01111001 A = &B00000001 D = P3 C = A Xor D P3 = C Wait 1 Goto…