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

BASCOM-AVR : Ver 2077 : REPLY

$
0
0
i was typing a new topic about it. And the news i always add later. You will not see history lists here : but in the register where you update you can view what has changed. Just select 2077 and click the history button. This is in fact the list with enhancements/fixes from the register. 2077 was out before with a pre release. But this is the official release. You will read more about it in my 2077 topic.

BASCOM-AVR : 2077 official release : NEWTOPIC

$
0
0
After a lot of work, and later than planned, i can announce that version 2077 is available. You can get it using the update wiz, or you can download a full setup. As always, you can make a backup and/or install the software in it's own folder so you can have the old and the new version. - The help file has categories for I2C, 1WIRE, etc. which should make it more clear. - dat files for new chips have been added. - there is a now support for USI and Xmega slave (the i2c slave add on has been updated as well) - there is a new/alternative i2c master soft lib - ######################### IMPORTANT #################################### the crc32 function has been updated. it returned the crc in the wrong byte order. Now it returns it in the right order. BUT this means you need to change your code. I left the old code in the mcs.lib so you could copy it in and put it in a new lib to maintain code compatibility But it is best to update your code. - spimove() has an optional parameter. it has been discussed in this forum - the editor has a great feature (IMO) when code explorer is active you can get info about code elements like alias, variable and constants, etc. Just press SHIFT and hover the cursor over your code to see what i mean. - the editor can also show indent lines for structures. it can be a nice visual help. it requires the code explorer to be visible and it is best to 'proper indent' your code. These 2 options are not 100% optimal. But i did not want to hold it back since it is already useful. Have fun! [b:c3719bff9b][color=red:c3719bff9b](BASCOM-AVR version : 2.0.7.7 )[/b:c3719bff9b][/color:c3719bff9b]

Share your working BASCOM-AVR code here : Fast library for ILI9325 LCD : REPLY

$
0
0
Так я и не понял (после просмотра видео), 8 разрядный интерфейс или нет? На видео вывод цветных картинок тормозит как при выводе через SPI.

BASCOM-AVR : 2077 official release : REPLY

BASCOM-AVR : 2077 official release : REPLY

$
0
0
Hi MArk, Very nice, especially the indent for structures, Thanks

BASCOM-AVR : mega128A and 2x16 LCD : NEWTOPIC

$
0
0
Hello everybody, I'm trying to get a 2x16 lcd working on my ATMEGA128A. I have tried the sample code in the sample folders, could not get it working, I also borrowed some sample code from a post here and just changed the port used from D to A. All I can get on this lcd display is just 16 dark squares on the first line of the LCD Display. I have attached the datasheet for the lcd in a jpeg format Here is the code I'm currently testing with: $regfile = "m128def.dat" $crystal = 8000000 ' used crystal frequency $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space Config Lcd = 16 * 2 'configure lcd screen Initlcd Config Lcdpin = Pin , Db4 = Porta.5 , Db5 = Porta.4 , Db6 = Porta.3 , Db7 = Porta.2 , E = Porta.6 , Rs = Porta.7 ' (PIN 11 LCD) (PIN 12 LCD) (PIN 13 LCD) (PIN 14 LCD) (PIN 6 LCD) (PIN 4 LCD) Dim A As Byte Do Cls 'clear the LCD display Lcd "Hello world." 'display this at the top line Wait 1 Lowerline 'select the lower line Wait 1 Lcd "Shift this." 'display this at the lower line Wait 1 Loop End Any Ideas what may be wrong? I'll continue to check my setup for wiring problems, but all looks god thus far. Thanks for any help you can provide, Robert [b:4780dd1996][color=red:4780dd1996](BASCOM-AVR version : 2.0.7.6 , Latest : 2.0.7.7 )[/b:4780dd1996][/color:4780dd1996]

BASCOM-AVR : 2077 official release : REPLY

$
0
0
Thank you very much, I'm downloading it now, it looks very nice indeed...

BASCOM-AVR : 2077 official release : REPLY


BASCOM-AVR : 2077 official release : REPLY

$
0
0
I love the indent with lines for structures, .... used to use Programmer's NotePad in case I needed overview. Nice work Mark ! Nard

BASCOM-AVR : mega128A and 2x16 LCD : REPLY

$
0
0
Hi, Did you connect VCC pin 52 ?

BASCOM-AVR : mega128A and 2x16 LCD : REPLY

$
0
0
Thanks for the reply, Quote "Hi, adjuse lcd contrast (16 dark squares) LCD RW Pin to GND ? M103C fuse ? pin 52/53 & 63/64 ? see datasheet page 241" I have the contrast LCD pin 3 going to ground for the darkest letters possible. LCD RW Pin is tied to ground also. M103C fuse is not set I will have to check pin 52/53 & 63/64 in the data sheet. I have set this up on other ports though, D and B It did not function on those either

BASCOM-AVR : mega128A and 2x16 LCD : REPLY

$
0
0
[i:5b4f86f6b9]I have the contrast LCD pin 3 going to ground for the darkest letters possible[/i:5b4f86f6b9] then you can't see the letters if it's to dark use a potmeter so you can adjuse the contrast

BASCOM-AVR : mega128A and 2x16 LCD : REPLY

$
0
0
The potentiometer just adjust's the contrast of the 16 squares, in other words its not displaying nothing but the squares, no text and only on the first line. It's almost like it never gets initialized. I also tried to change the LCD for another one, same outcome... Is there any post of actual working code? I would like to know if something is wrong with my code, or maybe my setup. If I have actual code that works, then I will know if there is something wrong with my setup. I just tried it out on PORTB, same outcome, this is getting a lil frustrating. I will take a look through the sample folder again. Thanks, Robert

BASCOM-AVR : mega128A and 2x16 LCD : REPLY

$
0
0
Ok I got it working with some code from the sample folder, but It would still not work until I switched to the internal 8 mhz oscillator. And yes the potentiometer, helps quit a bit, I can see the display with pin 3 tied to ground, but that cleans it up pretty nicely. I'm still confused why it works on the internal oscillator and not the external crystal. I scoped the crystal inputs on the mcu, and the crystal is working fine, right where it should be. Oh well, I'll leave that for another day. Thanks for the help, Robert

BASCOM-AVR : mega128A and 2x16 LCD : REPLY

$
0
0
default settings is internal 1Mhz (ATMEGA128A) what fusebits did you setup for ext 8Mhz ? (low = xx High = xx)

BASCOM-AVR : MCP4361 digital potentiometer SPI interface : NEWTOPIC

$
0
0
I have seen several discussions on interfacing with digital potentiometers. Here is a simple solution that has worked well for me. --Gary [b:ce9580f760][color=red:ce9580f760](BASCOM-AVR version : 1.11.8.7 , Latest : 2.0.7.7 )[/b:ce9580f760][/color:ce9580f760]

BASCOM-8051 : Automatic covertion to ASCII problem : REPLY

$
0
0
[quote:3431452db9="albertsm"]i have no idea what you mean :D where do you get the letter from ? Do you read this from the serial port or keyboard or what? Anyway say you have a string with value "100" ., you can use VAL() to convert it to a numeric value. Say you have "1" you can use ASC() to get the ascii value and the subtract 48 from it. Just some ideas.[/quote:3431452db9] Well i'm a student, working my second program in Bascom... I need to type the number from 1 to 100 (on keyboard) but there's a problem when i press letter... When i press it program runs like i've typed acsii value (it's converting it automatic) so i need to make IF - ELSE condition to test variable declaring... I just don't know how to write that IF - ELSE condition that could test variable type, that's all :D Anyone can give me exaple or smtg? BCZ i DON'T NEED converting to ASCII code or from ASCII code to letter...

BASCOM-AVR : Using SPI on 3.5 display with FTDI FT800 controller. : NEWTOPIC

$
0
0
Hello Forum, I have an ATmega8 breadboard to a 3.5 inch display from Digikey made by FTDICHIP.com The wake-up routine looks to be OK since the backlighting on the display turns on after the code is run. The area I need help in is that I am unable to get the display to put anything on the screen. I have used other devices with SPI but only 1 byte commands so even just a second opinion on format would help. In my remarks I have notes from the Data Sheet and Programmers Guide. I think this Display might be of interest to others using BASCOM. It looks to have interesting widgets that don't need a powerful chip. Regards Larry [b:80f9c3c75f][color=red:80f9c3c75f](BASCOM-AVR version : 2.0.7.6 , Latest : 2.0.7.7 )[/b:80f9c3c75f][/color:80f9c3c75f]

Share your working BASCOM-AVR code here : MCP4361 digital potentiometer with SPI : NEWTOPIC

$
0
0
An easy solution if you need a digital potenetiometer

BASCOM-AVR : mega128A and 2x16 LCD : REPLY

$
0
0
I have a Jtag Ice mk II that I use in conjunction with Atmel Studio (ver 6.1) to set the fuse settings. Jtag is enabled right now, but will be switched off later in favor of a boot loader. It was switched from the default 1 Mhz internal oscillator , to an external fuse setting and M103C fuse setting does not have a check in it's box in avr studio. The development board is about 4 years old that I'm using, may have a bit of oxidization in the crystal socket. I will play around a bit with the board and check it out. It did work when I first got it, but who knows now? When I had it running another program reading a rotary encoder it was using the eternal 8 Mhx crystal, So I'm taking a guess it was working, only when I added the LCD did I have this problem. That's kind of why I'm at a loss for why it worked on this internal oscillator and not the external. I will get my scope out again and check the external crystal again. It may yet be the fuse setting in avr studio as when I set it to: EXTRCOSC_3MHZ_8MHZCK_4MS the lcd stops functioning. It would seem to me this is the correct fuse setting for the 8Mhz crystal with a 4ms start up time, but I will play around with it some. Robert
Viewing all 20637 articles
Browse latest View live


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