Quantcast
Viewing all 20578 articles
Browse latest View live

BASCOM-AVR : scan 8 channel in free runing mode of xmega : REPLY

[quote:08b1bd7266="karlos"]i want to scan 8 channel (pina.0 to pina.7) of xmega32a4 [/quote:08b1bd7266] If the controller provides only 4 channels, you won't find samples using 8.

BASCOM-AVR : scan 8 channel in free runing mode of xmega : REPLY

BASCOM-AVR : scan 8 channel in free runing mode of xmega : REPLY

[quote:4fd21a9e9e="karlos"]changing Mux cant help me?[/quote:4fd21a9e9e] Sure, it's fairly easy to write code for sampling 8 AD-pins even with a Tiny87, simply change MUX within the ISR. But you did ask for channels and that's different.

BASCOM-AVR : hardware SPI : NEWTOPIC

Hi The attached programm is a part a programm for a electronic load. The programm stops at the Spiout command and do not continue, when using hardware SPI. Using Soft SPI with the same Pins workes without problems Ok, using software SPI would be possible for me, nevertheless I would like to know, why Hardware SPI is not working. I another Project with Mega 328 there was no problem. Any idea? Tnx for a answer Guenter [b:d310c5dd09][color=red:d310c5dd09](BASCOM-AVR version : 2.0.7.8 )[/b:d310c5dd09][/color:d310c5dd09]

BASCOM-AVR : ATxmega128B3 : REPLY

Thanks for the DAT file. But support for PORTG and PORTM is missing. I get this from MCS support. Add to the IOEXT DDRM=1888 PORTM=1892 PINM=1896 DDRG=1728 PORTG=1732 PING=1736 But Still missing support for port M. Best regards Georges

BASCOM-AVR : 128B3 : NEWTOPIC

Hi, How can I configure PORTM ? SET an output ? READ an input ? Best regards Georges [b:c60830093b][color=red:c60830093b](BASCOM-AVR version : 2.0.7.8 )[/b:c60830093b][/color:c60830093b]

BASCOM-AVR : ATxmega128B3 : REPLY

Hi, How can I configure PORTM ? SET an output ? READ an input ? Best regards Georges

BASCOM-AVR : ATxmega128B3 : REPLY

The ide doesn't know portm yet, but you can use the registers direct yourself. Set port direction: [code:1:8cdc73d26b]DDRM= $B00001010[/code:1:8cdc73d26b] Read a pin: [code:1:8cdc73d26b]a= PINM.1[/code:1:8cdc73d26b] Set a pin: [code:1:8cdc73d26b]Set PORTM.2[/code:1:8cdc73d26b]

BASCOM-AVR : ATxmega128B3 : REPLY

BASCOM-AVR : XMEGA INT for Dummies : NEWTOPIC

Hi, I have an XMEGA 128B3 running at 32 Mhz. How can I generate an Timer INTeRRUPT every milliseconde ? Thanks for alll Georges [b:f64751defb][color=red:f64751defb](BASCOM-AVR version : 2.0.7.8 )[/b:f64751defb][/color:f64751defb]

BASCOM-AVR : XMEGA INT for Dummies : REPLY

this cod evil generate every 1mSec a interrupt [code:1:2a9dfa4a00] Config_tc0: Config Tcc0 = Normal , Prescale = 128 Tcc0_per = 250 '32MHz/128 = 0.000004 * 250 --> 1mSecOne Tick On Tcc0_ovf Tc0_isr 'Setup overflow interrupt of Timer/Counter C0 and Enable Tcc0_ovf , Lo 'Enable overflow interrupt in LOW Priority Config_priority: Config Priority = Static , Vector = Application , Lo = Enabled , Med = Enabled 'Enable Lo Level Interrupts Start_intterupts: Enable Interrupts main: do loop '******************************************************************************* ' Timer 0 isr routine '******************************************************************************* Tc0_isr: ' do something return [/code:1:2a9dfa4a00] Tiny

BASCOM-AVR : XMEGA INT for Dummies : REPLY

Hi, I change prescale to 256 and it work nicely. Many thanks, Best regards Georges

BASCOM-AVR : Inkey with case statements that need to start with 0 : NEWTOPIC

Inkey with case statements that need to start with 0 like if it starts with 0 as 1 then it just hangs on 0 and wont go to the next thing i just cant see a way out of it lol [b:b8c9e3ea4c][color=red:b8c9e3ea4c](BASCOM-AVR version : 2.0.7.8 , Latest : 2.0.7.8 )[/b:b8c9e3ea4c][/color:b8c9e3ea4c]

BASCOM-AVR : Inkey with case statements that need to start with 0 : REPLY

Inkey returns 0 ( ie Binary zero ) when there is no character in the input buffer. So anytime you enter inkey, and there is no character waiting, you will get 0 as response, hence your case statement always goes to that. If you use buffered serial input, and ischarwaiting, then only go to the inkey statement when ischarwaiting is true ( 1 ), then you will not have this behaviour. And the case where inkey actually returns a binary zero because there is a zero in the buffer is also correctly handled. [code:1:15e143dbe3] dim bt as byte while ischarwaiting() > 0 bt = inkey() select case bt case 0 '' case 1 'and other cases .. end select end while [/code:1:15e143dbe3]

BASCOM-AVR : Inkey with case statements that need to start with 0 : REPLY


BASCOM-AVR : atmega1284p : NEWTOPIC

Hi all, im new to micro controller programming and have been working on programs that were intitially written by other people. i can write logic well but do not have background knowledge in microcontrollers. the controller im working with uses a 1284pa chip. i have run into a problem i haven't been able to solve for a while where the lcd display on the controller goes funny and the controller doesn't work. leaving it like that for a while sometimes the problem just goes away and im able to continue using the controller. i havn't been able to use the simulator or do any debugging. any help will be appreciated[/img] [b:c22e6815a7][color=red:c22e6815a7](BASCOM-AVR version : 2.0.7.8 )[/b:c22e6815a7][/color:c22e6815a7]

BASCOM-AVR : atmega1284p : REPLY

Looks like bad or to long wiring to me. But that's just a guess, with code and schematic it's hard to say. ;-)

BASCOM-AVR : EEprom access using pointers and tables : REPLY

you can test it, a version that supports this was uploaded to SLA 2080.

BASCOM-AVR Old versions : Libraries Xmega : NEWTOPIC

Hi I need to Link Libraries (Xmega) special program (Proteus ) thank you

Share your working BASCOM-AVR code here : 1-Wire search & save + DS1820 : REPLY

Sadly this one can not be used with the free version as it just exceeds the 4K limit by 200 bytes. But the .HEX & .BIN files will let you load the UNO This uses the Arduino UNO with an Pcf8574 I2C lcd driver to display the Family code on the LCD and the temprature Regards Paul
Viewing all 20578 articles
Browse latest View live


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