Quantcast
Channel: MCS Electronics Forum
Browsing all 20758 articles
Browse latest View live

BASCOM-AVR : absolute value of difference : REPLY

Just for fun as function: [code:1:5ab9883977]dim c as byte CONFIG SUBMODE = NEW function SubtractLowerFromHigher(byval a as byte, byval b as byte) as byte 'Load a !LDD r26 , y + 2 !LDD r27 , y + 3 !ld...

View Article


BASCOM-AVR : absolute value of difference : REPLY

More simple: [code:1:1485a22284]C = A - B If SREG.0 = 1 Then C = 256 - C[/code:1:1485a22284]

View Article


BASCOM-AVR : Xmega256a3bu backup battery for rtc32 : NEWTOPIC

Dear to all I'm using this code to have a rtc. This micro have a dedicated pins for the crystal and battery backup. In the config clock of rtc32 it is remarked that backup battery is enabled but any...

View Article

BASCOM-AVR : Xmega256a3bu backup battery for rtc32 : REPLY

[quote:00789d48d5="Gino_71"]In the config clock of rtc32 it is remarked that backup battery is enabled[/quote:00789d48d5]I see no matching line in your code. [quote:00789d48d5]but any time I switch...

View Article

Share your working BASCOM-AVR code here : 2.8inch 65K FullColorLCD 240x320dot...

If the virtual port connected to the LCD is the same port, it will operate normally. The problem with multiple virtual ports is unknown. I do not know I am not familiar with Xmega.

View Article


Share your working BASCOM-AVR code here : 2.8inch 65K FullColorLCD 240x320dot...

A bug was found in the original [glcd-ST7735R.lib]. It does not work if A0=[DC] and Sclk=[SCK] are assigned to another port. * Sbi _glcd_port_scl, _glcd_a0 -> * Sbi _glcd_port_a0, _glcd_a0 * Cbi...

View Article

Share your working BASCOM-AVR code here : 2.8inch 65K FullColorLCD 240x320dot...

O-Family thank you, thank you very much. It works now perfect also on ATXMEGA128A3U. But I have one question more: How can I transform my fonts (I use them on monocrome LCD) like color fonts. I tryed...

View Article

BASCOM-AVR : Xmega256a3bu backup battery for rtc32 : REPLY

Hi MWS Thank you for your kind words. I will go deep in the data sheet and try to write the code to do per your tip. I just write on the forum because no example and or info are provided around rtc32....

View Article


BASCOM-AVR : Xmega256a3bu backup battery for rtc32 : REPLY

Oh, my words have not been that kind. In case that suddenly happens, start to worry about me :D However they should have been able to push you into the right direction, for the conversion routines...

View Article


Share your working BASCOM-AVR code here : 2.8inch 65K FullColorLCD 240x320dot...

Hi, It was good to work well! The font for monochrome and the font for color are different in data arrangement. It is due to the structure of the internal memory of each LCD. Furthermore, BASCOM's...

View Article

BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? :...

So I've been using the following to determine the nth occurrence of a day within a month [code:1:1a2ea0fed7]Function DayNameCountCurrentMonth() As Byte Local Temp_Day As Integer Local Day_Name_Counter...

View Article

BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY

Are you aware of the https://avrhelp.mcselec.com/datetime.htm date time function's in Bascom? I think you can come with DayOfWeek and SysDay where you want. At the moment I don't have a running Bascom...

View Article

BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY

Indeed I have. In fact, I've been playing with it trying to accomplish what I need.

View Article


BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY

Ken, from what I did experience with you, especially your most unclear problem descriptions (like this time again), I was thinking about not answering anymore any of your requests. In this case at...

View Article

BASCOM-AVR : AVR MKII Programmer not found : NEWTOPIC

Hi, I set up a new Bascom (with new lizense) at my new office. To get the AVRISP MKII Programmer to work, I Installed Atmel Studio 7. In Studio 7, I get the Programmer connented and can read fuses and...

View Article


BASCOM-AVR : AVR MKII Programmer not found : REPLY

please read the LIBUSB topic in the help and follow the instructions. you need to install libusb, then install a filter driver for the programmer. after that it should work just fine.

View Article

BASCOM-AVR : AVR MKII Programmer not found : REPLY

Hi Mark, will try it next week, need the companies admin... Thank you, Marc

View Article


BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY

Thank you MWS

View Article

BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY

Ok. so far so good Now, suppose I want to know the date of the 3rd occurrence of a Tuesday of a given month? For example, all I know is the month (1-12) and 3rd occurrence of Wednesday in that month....

View Article

BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY

If you know month and year, you can calculate the day of week for the first day of said month. In case it's a Monday, the first Wednesday will be the 3rd, thus the third Wednesday will be the 17th....

View Article
Browsing all 20758 articles
Browse latest View live


Latest Images

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