BASCOM-AVR : Problem with Bascom AVR terminal emulator : REPLY
no, CH340 (also FT232 Cp2102 etc) ALL produce TTL level signals, if you want to make a complete usb>serial232 module ANOTHER chip, like HIN202/MAX232 must be added here is the CH340 module i have...
View ArticleBASCOM-AVR : Problem with Bascom AVR terminal emulator : REPLY
[quote:1e5af198f7="plouf"] if you want to make a complete usb>serial232 module ANOTHER chip, like HIN202/MAX232 must be added[/quote:1e5af198f7] You are quite correct, but if you claim to produce a...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : NEWTOPIC
On my nano board I have configured PINB.0 as output. I was wondering if one can read back this output port to see whether it was set to a 1 or a 0. I have been on other forums, some people say it IS...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
You write to the input register where you need to write the output port. In newer AVRs writing a 1 to the input register toggles the output pin and that's what you observe.
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
Thanks for the response. However, in the line "Config PortB.0 = Output", I make port B.0 OUTPUT Further in the program I set this OUTPUT to "1" then read it back; I read 11 Then I set this OUTPUT to...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
Maybe you can share the arduino program so we can see what you need.
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
my suggestion : read what MWS wrote. it is the answer. if you do not understand his clear answer then read the datasheet. I can spell it out too : writing to the PIN register should never be done...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
As Evert requested, here is the arduino code [code:1:76b77c9fd1]int outputPin = 8; void setup() { Serial.begin(115200); pinMode(outputPin, OUTPUT); } void loop() { digitalWrite(outputPin, HIGH);...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
that is simple code and i do not understand why you use : set PINb.0 while this code obvious tell you to do : set [b:ae0789f01c]PORTB.0 [/b:ae0789f01c][color=red:ae0789f01c][/color:ae0789f01c] And...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
Simply: - use Port for output - use Pin for input state checking Translating your Arduino example to Bascom AVR: [code:1:666420a559]$regfile = "m328pdef.dat" $crystal = 4000000 $hwstack = 80 $swstack...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
[quote:1e251f57bc="RAWWAR"]So I really don't know what I am doing wrong in Basic.[/quote:1e251f57bc] One brilliant idea would be to learn reading the answer you got. :shock: It is not:...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
Hello all thanks for helping me. However, I do like to clarify a thing. MWS's first attempt ([b:527512cb0d]and I appreciate that[/b:527512cb0d]) to help me, raised more questions then it solved. He...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
It is not cynical or not intended that way. When you(a user) asks something and get an answer there are few options IMO. You are helped and all is ok. You do not get it or you think it is a wrong...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
[quote:08e60f3fb4="RAWWAR"]There is no need to be cynical by telling me to read the answers;[/quote:08e60f3fb4] I suggest to work on your communication skills, this applies for hardware as well as for...
View ArticleBASCOM-AVR : Problem with Bascom AVR terminal emulator : REPLY
Hi Guys, Just received my usb/rs232 cables from Amazon, all give out plus/minus 5Volts swing and all of them work with Bascom AVR UPDI programmer, all are FTDI based chipsets and the resistor used is...
View ArticleBASCOM-AVR : Problem with Bascom AVR terminal emulator : REPLY
If you are going to program updi processors : I recommend to get an EDBG programmer. Like the Microchip SNAP for example. It is a bit of work to change the firmware but once you done it, you can use...
View ArticleBASCOM-AVR : Problem with Bascom AVR terminal emulator : REPLY
Hi Mark, For the time being, at least, I think that I will tolerate the MCS UPDI programmer, it does work for me. The one thing which angers me though is when Microchip release new parts at...
View ArticleBASCOM-AVR : Reading the state of a port which is defined as output : REPLY
@RAWWAR and @ok1hdu This translation from Arduino code is not correct. DigitalWrite PIn.x LOW/HIGH in Arduino means PORTn.x = 0/1 DigitalRead PIn.x in Arduino means Variable = PINn.x So DigitalRead...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : NEWTOPIC
Hi Guys, I tried repeatedly to try and get my AVR64DD32 with an external crystal to work but to no avail. Does anyone here know how to set up an avrx chip for an external crystal? Thanks Darren
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
Hello, Could you share with us your code (CONFIG OSC XTINY and CONFIG SYSCLOCK XTINY)? Regards, Przemek
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
[quote:c2c79ee9b2="programmista123"]Hello, Could you share with us your code (CONFIG OSC XTINY and CONFIG SYSCLOCK XTINY)? Regards, Przemek[/quote:c2c79ee9b2] Unfortunately, I do not have any code, I...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
Code is under: [ code][ /code] (without spaces). Look into help with these 2 topics: 1. CONFIG OSC XTINY 2. CONFIG SYSCLOCK XTINY After that look into the latest post...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
[quote:794dd0d52f="programmista123"]Code is under: [ code][ /code] (without spaces). Look into help with these 2 topics: 1. CONFIG OSC XTINY 2. CONFIG SYSCLOCK XTINY After that look into the latest...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
Tell us more about you hardware - schematic, picture, parts etc.
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
[quote:91bfa3ffcd="programmista123"]Tell us more about you hardware - schematic, picture, parts etc.[/quote:91bfa3ffcd] Hi, My hardware is very simple, a 24MHz crystal connected to pins 30,31 and the...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
1. Do you have small capacitors (x-xx pF) between pin 30 and GND + pin 31 and GND? 2. The best way to check if oscillator is generating waveform is to check PA7 output. If it's working you will see...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
[quote:b02f611a55="programmista123"]1. Do you have small capacitors (x-xx pF) between pin 30 and GND + pin 31 and GND? 2. The best way to check if quartz is generating waveform is to check PA7 output....
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
Dear Sir. It takes me 5min to make this connections to the hardware and test. Package 32pins. Oscillator on 30 and 31, Output of the system clock on pin 5, LED on pin 1. I make config for 16MHz...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
[quote:c314a7ecc1="EDC"]Dear Sir. It takes me 5min to make this connections to the hardware and test. Package 32pins. Oscillator on 30 and 31, Output of the system clock on pin 5, LED on pin 1. I make...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
You are wrong and probably dont read carefully. I wrote "LED blinks at 1Hz (500ms on/off) [b:59bf04cfdf]and when I remove the crystal then LED stop blinking[/b:59bf04cfdf]." New chips always started...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
[quote:f73f6f506e="EDC"]You are wrong and probably dont read carefully. I think you crystal not working at all so your uC never can switch to it so ... i think you have hardware...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
Hi All, Found the problem with my avr64dd32, one of the oscillator pins was was not making proper contact with the carrier board, resoldered the pins and on trying, it sprang to life, all working....
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
Hi Good to hear that you managed it :D If you had a TQFP package and measured XTAL on the processor pin, we would probably wonder if it was starting to work due to the added capacitance of the...
View ArticleVarious : Bascomp is a virus ? : NEWTOPIC
I think no. But some times I use Fsecure to do a scan of my PC and I receive this alarm [img:d14225b63f]https://www.mcselec.com/userpix/115_20250703_151757_1.jpg[/img:d14225b63f] I pass over... JP...
View ArticleVarious : Bascomp is a virus ? : REPLY
Probably the free version? They give false positives. Check if the file is digital signed with MCS certificate. I always use virustotal to check files before i distribute. Some total unknown vendors...
View ArticleBASCOM-AVR XTINY/MEGAX/AVRX : Using a xtal option on avrx : REPLY
Some of the issues can be resolved by very extended diagnostics introduced to uC`s I TopicOwner read the one Regoster then it will ge answear that ExternalCrystal is not stable or even working. It was...
View Article