BASCOM-AVR : drive device with MCU and visual studio 2012 : REPLY
Hi, I use all what you write but I have always problem. When I use command "Input" so on LCD is nothing. I use program Serial Port Monitor and send binary number 11111111 and on LCD I see 11111110. I...
View ArticleBASCOM-AVR : pulse length capture : REPLY
Depending on which pins you have available, the T0 input for timer0 and T1 input for timer1 can serve for the purpose of counting an external frequency. If you start the timer when reading a high to...
View ArticleBASCOM-AVR : pulse length capture : REPLY
Dear Ian; thanks for the suggestion, but nothing has changed with start/stop. Why "save" myself, if Bascom do it for me :) . The readings are realy at random. I changed a little the loop, but this is...
View ArticleBASCOM-AVR : pulse length capture : REPLY
Hi, If you don't use nosave bascom will add code to the ISR so that all registers are saved/restored before the actual code in the ISR is called. Saving all the registers costs approx. 30 machine code...
View ArticleBASCOM-AVR : pulse length capture : REPLY
[quote:8d1edba9f7="i.dobson"]Saving all the registers costs approx. 30 machine code commands. Depending on your clock speed the delay caused, may be just too much for your...
View ArticleBASCOM-AVR : pulse length capture : REPLY
Take a look at the PULSIN statement, maybe that's enough for what you want to do with it. http://avrhelp.mcselec.com/pulsein.htm
View ArticleBASCOM-AVR : pulse length capture : REPLY
You must clear timer1 on the Int0 ( rising edge ), not just enable the timer interrupt then read the timer on the falling edge in Int1 If you want to read the timer hi-lo as two separate bytes, Atmel...
View ArticleBASCOM-AVR : drive device with MCU and visual studio 2012 : REPLY
The progam I posted will not print anything to a LCD it will communicate via the serial port (RS232) with a PC it is only to test that you can talk to the AVR, what ever you type in a terminal screen...
View ArticleEASY TCP/IP : Arduino Ethernet shield not working with atMega1280 ? Modbus :...
Hi! I write ModbusTCP server protocol using Arduino uno R3 and cheap 10$ Ethernet shield with W5100. It work GREAT! Fast response to Twincat PLC too. This is setup, nothing fancy, I just copied from...
View ArticleBASCOM-AVR : Config Timer0 for ATtiny2313 : NEWTOPIC
I am a definite newby to the AVR world, and haven't coded at all for over 10 years. It's a struggle to get back up to speed, but I am having lots of fun trying! I've started coding around an...
View ArticleBASCOM-AVR : Virtual USB-port for AVR : REPLY
[quote:afccd03fc4="Mrshilov"]Mr.Ollopa how can I add this strings to library?: [code:1:afccd03fc4] Period_number=8 COMPARE1A=Last_period TIMER1=Shift_delay [/code:1:afccd03fc4]...
View ArticleBASCOM-AVR : Virtual USB-port for AVR : REPLY
It's a 18-LEDs Light Music Unit with 256-bit PWM: [url]http://lightportal.at.ua/publ/kombinirovannye/koshachij_glaz_4_versija/11-1-0-64[/url] (sorry, site is only in Russian, but program multilingual)...
View ArticleBASCOM-AVR : KTM-S1201 serial LCD help needed : REPLY
Thanks, I'll check this out later today.
View ArticleBASCOM-AVR : drive device with MCU and visual studio 2012 : REPLY
Start with this: 1. Make sure your chip really runs at 8 MHz. (For example blink a Led 1 sec on, 1 sec off.) 2, Then try this with a terminal: [code:1:e244620333]$regfile = "m644pdef.dat" $baud = 2400...
View ArticleEASY TCP/IP : Arduino Ethernet shield not working with atMega1280 ? Modbus :...
first step, before init W5100, should be to reset the Chip with a portpin. After that wait for at least 300ms! then do your config to w5100. best, michael
View ArticleBASCOM-AVR : Graphic LCD 240x128 (T6963C) biger Fonts / Level Shifter Xme :...
I allready use this configuration. XMega with 4245 Level-shifter. For the Fonts I use the code from http://evertdekker.com -> Graphic fonts The Setup is working great.
View ArticleBASCOM-AVR : Exponent ^ with variable problem : NEWTOPIC
hello to all, i have problem with this : Dim A As single Dim B As single B = 2 A = B ^ 0.734 Print A [b:4e0c94915f]the result is 0.0 it is wrong![/b:4e0c94915f] but, if i don't use variable the result...
View ArticleBASCOM-AVR : Config Timer0 for ATtiny2313 : REPLY
[code:1:ff7c4bf9fe]$regfile = "Attiny2313.dat" 'Soubor s deklaracemi $crystal = 8000000 'Kmitočet oscilátoru v Hz $hwstack = 32 $swstack = 16 $framesize = 16 Dim Temp As Long Const Prescaler = 64...
View ArticleEASY TCP/IP : Arduino Ethernet shield not working with atMega1280 ? Modbus :...
I had try that in way that before I uppload program to atmega, I reset W5100 with on board button. A also try to wait 10 (!) seconds before "spi config" line, and before "tcp config" line too, without...
View ArticleBASCOM-AVR : Find out if bootloader is present in flash : NEWTOPIC
Hi, I'd like to check from the main app, if the bootloader is present in the BL section of the flash. Checking one or a couple of bytes to be different from &HFF would be sufficient. How to read...
View Article