Quantcast
Channel: MCS Electronics Forum
Viewing all 20613 articles
Browse latest View live

BASCOM-AVR : 3 PWM on M324P : NEWTOPIC

$
0
0
Hi All, I have problem to configure the 3 PWM on M324P: [code:1:700e51add3] $regfile = "m324pdef.dat" $crystal = 8000000 $hwstack = 40 $swstack = 30 $framesize = 40 Config Timer1 = Pwm , Pwm = 8 , Prescale = 1 , Compare A Pwm = Clear down Config Timer2 = Pwm , Prescale = 8 , Compare_A_Pwm = Clear_Up , Pwm = On , Compare_A = Set , Async = Off Start Timer1 Start Timer2 do Pwm1a = 255 Pwm1b = 255 Pwm2a = 255 waitms 350 Pwm1a = 0 Pwm1b = 0 Pwm2a = 0 waitms 350 loop end[/code:1:700e51add3] I have only OC2A (PORTD.7) works. Any id for what. Thanks Olivier [b:700e51add3][color=red:700e51add3](BASCOM-AVR version : 2.0.7.6 , Latest : 2.0.7.7 )[/b:700e51add3][/color:700e51add3]

BASCOM-AVR : ATXMEGA USART problem : REPLY

$
0
0
[quote:ee9db7a39e="kulisek"]COM1 and COM4 is OK[/quote:ee9db7a39e] Surely not, COM1 & COM3 works, but not COM2 & COM4. The XMega32E5 provides one UART for PortC and one for PortD, other XMegas provide two UARTs for one port, so enumeration goes there: PortC_UART0, ...C_UART1: COM1, COM2 PortD_UART0, ...D_UART1: COM3, COM4 For the XM32E5 PortC_UART0 and PortD_UART0 is available, which makes it COM1 and COM3.

Various : RN-171 WiFly module : REPLY

$
0
0
Thanks for sharing your experience Dave ! If you don't mind can you please post your Bascom code? Thank you in advance, Olivier

BASCOM-AVR : ATXMEGA USART problem : REPLY

$
0
0
But here [url]http://avrhelp.mcselec.com/index.html?configcomx.htm[/url] is written COM2 - UART_C1 PORTC.7 PORTC.6 and I need PC6/7 for it

BASCOM-AVR : Problem Including Bootloader Code in Application Program : REPLY

$
0
0
Example files attached. Please note how "Boot_ATmega128.bas" correctly generates output binary and hex files and "Boot_Xmega256A3U.bas" does not. Best regards.

BASCOM-AVR : xm128a1udef.dat : REPLY

$
0
0
The same (chip ID) is true for XmegaXXXA3 and A3U and probably others. Bascom programmer is not aware of this and flags a warning. Best regards

BASCOM-AVR : xm128a1udef.dat : REPLY

$
0
0
yes it is odd that the chips is not binary compatible, but has the same chip ID. I did change the programmer so it just looks at the $regfile.

BASCOM-AVR : ATXMEGA USART problem : REPLY

$
0
0
it is as MWS says. if you look in the PDF you will see that RXD and TXD are both on pc2/3 and pc6/7. Some xmega have a remap register where you can remap pins. for example to remap the UART pins from the default, use PORTC_REMAP.4=1 while this swaps the pins, you still need to access the USART with the correct name.

BASCOM-AVR : Problem Including Bootloader Code in Application Program : REPLY

$
0
0
The combined use of the old $Boot and $Inc is very nice. I found the problem and changed it. it will be in the next update. as a workaround you can merge the hex files.

BASCOM-AVR : ATXMEGA USART problem : REPLY

$
0
0
[quote:2a0a0efdd7="kulisek"]But here [url]http://avrhelp.mcselec.com/index.html?configcomx.htm[/url] is written COM2 - UART_C1 PORTC.7 PORTC.6 and I need PC6/7 for it[/quote:2a0a0efdd7] Surprise, surprise, the XMega32E5 contains no UART_C1, didn't I write that already? But - it contains a REMAP-register, where you can decide whether pins 0..3, or 4..7 are used for COM1, it looks that is what you want. This: [code:1:2a0a0efdd7]Set PORTC_REMAP.4[/code:1:2a0a0efdd7] will use PC6 for RXD0 and PC7 for TXD0. You could have found this out yourself by simply reading the fffriendly manual.

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
@eniom : no that is not the reason. i can not see a problem in the lib. i advise : - to use a vport (config vport) for the lcd control. this is better for xmega. - check what works with the lcd and what not. is lcdat the problem? or the showpic ? or cls ? best to make a small demo that demos 1 problem.

BASCOM-AVR : ATXMEGA USART problem : REPLY

$
0
0
MWS seems we wrote at the same time :D

BASCOM-AVR : ATXMEGA USART problem : REPLY

$
0
0
[quote:3bd89b1cd5="albertsm"]MWS seems we wrote at the same time :D[/quote:3bd89b1cd5] Well. you made it first to the finishing line :D

BASCOM-AVR : ATXMEGA USART problem : REPLY

$
0
0
maybe because the server is closer at my home :wink:

BASCOM-AVR : 3 PWM on M324P : REPLY

$
0
0
Hi All, In old time, i have writed this for M644P (and run): [code:1:7885b498fd] Config Timer1 = Pwm , Prescale = 1 , Pwm = 8 , Compare A Pwm = Clear Down , Compare B Pwm = Clear Down Config Timer2 = Pwm , Prescale = 1 , Compare A Pwm = Clear Down , Compare B Pwm = Clear Down [/code:1:7885b498fd] But not works with M324P and Bascom 2.0.7.7 Why ? , any idea ? Best regards Olivier

Various : RN-171 WiFly module : REPLY

$
0
0
Olivier There really isn't any code needed. I just used a terminal program to configure the wifly. Then a PC program written in xojo to connect over the internet. I don't use the wifly anymore because my remote device no longer has internet access. Sorry, I wish I had more to offer but that's all there is to it. Dave

Various : RN-171 WiFly module : REPLY

$
0
0
Thank you for your fast feedback Dave ! Will check to use the µC in place of the terminal program. cheers, Olivier

BASCOM-AVR : Using Inkey (# var) and Input(# var) : NEWTOPIC

$
0
0
Hello I try to prepare function, where can I choise number of COM port like variable. Example: [code:1:836d90e7da]Function r_data(byval data_f as string, byval Cl_port as byte) as string Local data_f as string *100 Local Cl_port as byte Local Ikey as byte Ikey=Inkey(#Cl_port) if Ikey="+" then Input #Cl_port data_f Noecho endif r_data=data_f End Function [/code:1:836d90e7da] In help is described, that it is possible, but doesn't work. Why? If local variable Cl_port I change with fix number (eg. 3) it works. Same problem is with Inkey (#,Cl_port) statement [quote:836d90e7da]Syntax INPUT [" prompt" ] , var[ , varn ] INPUT #ch, var[ , varn ] Remarks Prompt An optional string constant printed before the prompt character. Var,varn A variable to accept the input value or a string. Ch A channel number, which identifies an opened file. This can be a hard coded constant or a variable.[/quote:836d90e7da] Regards M. [b:836d90e7da][color=red:836d90e7da](BASCOM-AVR version : 2.0.7.7 )[/b:836d90e7da][/color:836d90e7da]

Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY

$
0
0
Hello Mark, First, please accept my apology for you having to tell me twice to use a Virtual Port when interfacing LCD's to XMEGA. That was exactly the problem for my hardware setup in this case of XMEGA and the Nokia 5510. [code:1:c00ddf0bff]Config Vport0 = E $lib "glcd-Nokia3310.lib" Config Graphlcd = 128x64sed , Rst = Port0.4 , Cs1 = Port0.3 , A0 = Port0.2 , Si = Port0.1 , Sclk = Port0.0 [/code:1:c00ddf0bff] Thank-you. Ennio [Thank-you also to MrShilov for providing a working Library.]

BASCOM-AVR : XMega USB Support : NEWTOPIC

$
0
0
Hi, I'd like to ask when do you plan to release XMega USB support? Best regards Mirek [b:14f1ff4199][color=red:14f1ff4199](BASCOM-AVR version : 2.0.7.7 )[/b:14f1ff4199][/color:14f1ff4199]
Viewing all 20613 articles
Browse latest View live


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