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

BASCOM-AVR : Simple Sample Programmer : REPLY

$
0
0
usb<>lpt adapters can NOT be used. I looked into that long time ago. Maybe the chip is defective? Or check the ISP pins : when there is a load on these pins, it will not work either. Just check with a different chip. Also make sure the clock freq is not too high.

BASCOM-AVR : Low Power Sleep Project : REPLY

$
0
0
for vibrations/movements have a look at SQ-SEN-200 i tested it and it is included with the samples. Translate works great :D

BASCOM-AVR : Atmel-ICE Porgrammer : REPLY

$
0
0
you can buy them on ebay. or buy a clone, they work ok too. i have been busy with the JTAG ICE3. (the older model however). They changed the protocol so now it is a HID device. I hope the latest also called jtag ice3 is compatible. I hope that microchip will have a smarter approach. While i have written 99% of the code now, i am debugging to track a problem. For some reason i can not read the signature. When i am done i will make it available to you so you can test it.

BASCOM-AVR : Low Power Sleep Project : REPLY

$
0
0
[quote:d0cb29acb5="O-Family"] There is a good teacher of Google translation on the Internet! Please translate and read the site on Google. http://translate.google.com/translate?hl=ja&sl=ja&tl=en&u=http%3A%2F%2Fwww.ne.jp%2Fasahi%2Fshared%2Fo-family%2FElecRoom%2FAVRMCOM%2FLedTableLight%2FLedTableLight.html[/quote:d0cb29acb5] That is much better! I see where you put the device to sleep however I can't quite figure out how you wake it up. Unless I am missing something in the datasheet, the only pin which can wake the device from is the Pin 7 - INT0. As I understand it the pin change interrupts for the other pins are synchronized to the clock so in sleep when the clock is turned off the pin change interrupts don't work. I don't see you enabling INT0 to wake the device. Am I missing something?

BASCOM-AVR : Simple Sample Programmer : REPLY

$
0
0
Hi, I use this [url]http://shop.myavr.com/index.php?sp=article.sp.php&artID=200006[/url] from MyAVR it is 3.3 or 5v compatible, very fast and you can also communicate with people from MyAVR...It is important ! dont' forget to buy the 6 to 10 pin adapter [url]http://shop.myavr.com/index.php?sp=article.sp.php&artID=100075[/url] JP :wink:

BASCOM-AVR : Simple Sample Programmer : REPLY

$
0
0
that programmer is also supported by BASCOM.

BASCOM-AVR : Simple Sample Programmer : REPLY

$
0
0
Thanks for all the suggestions, I will scrap the "Sample programmer" option. Just remembered I also have an old STK500 laying around. I connected that and everything works fine. It is wery bulky so I have ordered two "mySmartUSB light" programmers as JP suggested. Regards, gerrySC

BASCOM-AVR : Help me to understand what is werrado : NEWTOPIC

$
0
0
I want to write and read the data in an external eeprom 95640, but I'm having some problems. I need help to understand what's wrong the code is : $regfile = "m128def.dat" ' specify the used micro $crystal = 14745500 ' used crystal frequency $baud = 38400 ' use baud rate $hwstack = 100 ' default use 32 for the hardware stack $swstack = 100 ' default use 10 for the SW stack $framesize = 40 'DEFENIÇÃO DO LCD Config Graphlcd = 240 * 128 , Dataport = Porta , Controlport = Portc , Ce = 2 , Cd = 3 , Wr = 0 , Rd = 1 , Reset = 4 , Fs = 5 , Mode = 6 'DEFENIÇÃO DO SPI Config Spi = Hard , Interrupt = Off , Data Order = Msb , Master = yes , Polarity = Low , Phase = 0 , Clockrate = 128 , Noss = 1 , Spiin = 1 Enable Interrupts Spiinit Declare Function Read95640() As Word Declare Function Write95640() As Word ' VARIAVEI GERAIS ' VARIAVEIS PARA 95640 95640_CS Alias PortE.5 Config 95640_CS = Output Dim EndressoRead_Inicio as Word Dim EndressoRead_Fim as Word Dim Dados_na_Eeprom_Read(8) as Word Dim EndressoWrite_Inicio as Word Dim EndressoWrite_Fim as Word Dim DadosWrite_Para_Eeprom(8) as Word ' ROTINA PARA VEREFICAÇÃO DE DADOS DA EEPROM ST95640 ' Whole memory 0000h - 1FFFh = 8191 X8 =64K ' CHAMA ROTINA PARA VEREFICAR SE EXISTE UMA DATA DE INSTALAÇÃO do 'EndressoWrite_Inicio = &H0000 'EndressoWrite_Fim = &h3 'DadosWrite_Para_Eeprom=4 'DadosWrite_Para_Eeprom=Write95640() EndressoRead_Inicio = &H0000 EndressoRead_Fim = &h3 Dados_na_Eeprom_Read = Read95640() loop end ' ROTINA DA EEPROM Function Read95640() As Word 'DEFENIÇÃO DA EEPROM Local Eepromsize as word Eepromsize = &H1FFF Local Spi_read As Byte local A As Byte Local B As Byte Spi_read = &B00000011 ' Read from Memory Array Locate 1,1 :Lcd "Start Reading..." While EndressoRead_Inicio < EndressoRead_Fim 'H0 to H3 A = High(EndressoRead_Inicio) B = Low(EndressoRead_Inicio) Reset 95640_CS 'Reset Portd.1 Spiout Spi_read , 1 Locate 2,1 : lcd Spi_read Spiout A , 1 Spiout B , 1 Locate 3,1 : lcd A Locate 4,1 : lcd B Spiin Dados_na_Eeprom_Read(1) , 16 Locate 5,1 :Lcd Dados_na_Eeprom_Read Incr EndressoRead_Inicio locate 6,1 : lcd "Address: " ; EndressoRead_Inicio locate 7,1 : lcd Dados_na_Eeprom_Read Locate 8,1 :Lcd "Read Finished" Set 95640_CS Waitms 250 Wend End Function Function Write95640()' As Word 'DEFENIÇÃO DA EEPROM Local Eepromsize as Word Eepromsize = &H1FFF Local I As Byte Local Write_Enable As Byte Local Write_to_Memory_Array As Byte Local A As Byte Local B As Byte Write_Enable = &B00000110 ' Write Enable Write_to_Memory_Array = &B00000010 ' Write to Memory Array I=1 Locate 10,1 :Lcd "Start Write..." ; DadosWrite_Para_Eeprom While EndressoWrite_Inicio < EndressoWrite_Fim 'H0 to H3 A = High(EndressoWrite_Inicio) B = Low(EndressoWrite_Inicio) Reset 95640_CS 'Reset Portd.1 Spiout Write_Enable , 1 nop Locate 11,1 :Lcd Write_Enable Spiout Write_to_Memory_Array , 1 nop Locate 12,1 :Lcd Write_to_Memory_Array Spiout A , 1 nop Spiout B , 1 nop Locate 13,1 :Lcd A Locate 14,1 :Lcd B Spiout DadosWrite_Para_Eeprom(1) , 4 nop Locate 15,1 :Lcd Write_Enable;Write_to_Memory_Array;A;B;DadosWrite_Para_Eeprom Incr I EndressoWrite_Inicio=I Locate 11,1 :Lcd "Write Finished" Set 95640_CS Waitms 100 Wend End Function :oops: Compiler 2.0.7.9.001 [b:2af2b2ce66][color=red:2af2b2ce66](BASCOM-AVR version : 2.0.7.9 , Latest : 2.0.7.8 )[/b:2af2b2ce66][/color:2af2b2ce66]

BASCOM-AVR : Low Power Sleep Project : REPLY

$
0
0
No, Please check the datasheet again. Even in the power down mode, the pin change interrupt is activated. -------------------------------------------------------------------- 7.1.3 Power-down Mode Only an External Reset, a Watchdog Reset, a Brown-out Reset, an external level interrupt on INT0, or a pin change interrupt can wake up the MCU. -------------------------------------------------------------------- Otherwise, my bedside light will drain the battery soon!

BASCOM-AVR : Atmel-ICE Porgrammer : REPLY

$
0
0
Hi Mark, Yes, I know the existence of a clone of [AVRISPmkII]. However, being a genuine product of Atmel(microchip) is important for embedded products of AVR. Many users were impressed when BASCOM completed IDE of [AVRISPmkII]. By all means, please also correspond to [Atmel-ICE]! I have [Atmel-ICE], so it is possible to check the operation with SLA. Best regards

BASCOM-AVR : Simple Sample Programmer : REPLY

$
0
0
To Marc: Hi , is there any chance to sell the USB-ISP Prog again? There was a warning saying: This product is currently not available. It will be available again on: 19.01.2017 Now that 's a strange message saying: This product is currently not available. It will be available again on: 19.01.2038 This is a very good programmer and I´m afraid I won´t be alive by 2038 to buy it, so...

BASCOM-AVR : Atmel-ICE Porgrammer : REPLY

$
0
0
there exist real ones too on ebay. i also use the genuine ones. but since users buy clones, i have them too. and they work equally well, but... they requires special firmware for libusb. since the new tiny platform also needs yet another programmer i thought it would be best to add jtag ice3. jtag first btw.

BASCOM-AVR : Simple Sample Programmer : REPLY

$
0
0
the manufacturer stopped making this programmer. i looked into making them myself. but there are some reasons why i decided not to do it : - to be cost effective, i need to order a lot of pcb - the driver is not working in win8 and up without disabling driver enforcement - it only support ISP the programmer still works with win10 when you disable driver enforcement. so the drivers can still be downloaded. that is why the page is still available. when someone want to order 100 i can reconsider :-)

BASCOM-AVR : Simple Sample Programmer : REPLY

$
0
0
Ok,thanks for the explanation!!!. And sorry , my bad calling you Marc instead of Mark. There´s no "k" consonant in my language that´s why sometimes we wrongly change it to "c"

BASCOM-AVR : Atmel-ICE Porgrammer : REPLY

$
0
0
Of course, I also have a real [AVRISPmkII]. However, new AVR users are wondering which one to choose. [quote:04e3ae6d1a="albertsm"]there exist real ones too on ebay.[/quote:04e3ae6d1a] Where is it? I searched, it became a premier item and it is very expensive and traded.

BASCOM-AVR Old versions : DS1307 : NEWTOPIC

$
0
0
HI ALL!! :D :D I have connected SDA (DS1307) with atmega8A SDA (portc.4) and SCL (DS1307) with atmega8A SCL (portc.5) with both connected and check connections well and battery at 3 volts and with $ lib file "ds1307clock.lib "And I am using bascom compiler 2.0.7.5. Why do I get LCD? = 1 / = 1 / = 1 = 1: = 1 /: = 1 :roll: :roll: :cry:

BASCOM-AVR Old versions : DS1307 : REPLY

$
0
0
Hard to say without any code. Try first the bascom i[b:9fca3f2436]2cscan.bas[/b:9fca3f2436] sample from your Bascom sample directory to see if your i2c hardware is working. If that's working try get "Helllo Evert" on your display. If that is also working combine both samples. If it's still not working show some code

BASCOM-AVR : Help me to understand what is wrong : REPLY

$
0
0
And what is the problem? Did you disabled the M103 compatible fuse? and the jtag fuse?

BASCOM-AVR : Help me to understand what is wrong : REPLY

$
0
0
What I want is: to write data in the eeprom "st95640" in a certain address and later to read those data. The fuses in ATMEGA128 compatible mode and the jtag disable. I can read some data I previously recorded in eeprom on an external recorder, but I can not get the atmega128 to do this. Thanks for the help. I made some changes in the routine that was wrong but continued with the same problem.

BASCOM-AVR Old versions : DS1307 : REPLY

$
0
0
[quote:1c66baf543="Evert :-)"]Hard to say without any code. Try first the bascom i[b:1c66baf543]2cscan.bas[/b:1c66baf543] sample from your Bascom sample directory to see if your i2c hardware is working. If that's working try get "Helllo Evert" on your display. If that is also working combine both samples. If it's still not working show some code[/quote:1c66baf543] There is no example bascom directory because it is demo. I already solved missing GND and VCC connect it DS1307 already works and works well. When you cut back to the beginning is normal? Do you miss connecting eprom? [code:1:1c66baf543]$regfile = "m16adef.dat" $crystal = 4000000 $hwstack = 40 $swstack = 16 $framesize = 32 $lib "ds1307clock.lib" $lib "i2c_twi.lbx" Config Sda = Portc.1 Config Scl = Portc.0 Config Lcd = 16 * 2 Config Lcdbus = 4 Config Lcdpin = Pin , E = Portb.1 , Rs = Portb.0 Config Lcdpin = Pin , Db4 = Portb.2 , Db5 = Portb.3 Config Lcdpin = Pin , Db6 = Portb.4 , Db7 = Portb.5 Cursor Off Noblink Config Clock = User ' 1307 klok Config Date = Dmy , Separator = - Dim _date As Byte Dim Ds1307w As Byte Dim Ds1307r As Byte Dim Weekday As Byte Ds1307w = &B11010000 Ds1307r = &B11010001 'setup date _day = 20 _month = 5 _year = 17 Gosub Setdate 'Setup time _sec = 00 _min = 12 _hour = 16 Gosub Settime Do Locate 1 , 1 Lcd "Hora:" Locate 1 , 9 Lcd Time$ Locate 2 , 1 Lcd "Fecha:" Locate 2 , 9 Lcd Date$ Loop End Settime: _sec = Makebcd(_sec) : _min = Makebcd(_min) : _hour = Makebcd(_hour) I2cstart ' Generate start code I2cwbyte Ds1307w ' send address I2cwbyte 0 ' starting address in 1307 I2cwbyte _sec ' Send Data to SECONDS I2cwbyte _min ' MINUTES I2cwbyte _hour ' Hours I2cstop Return Getdatetime: I2cstart ' Generate start code I2cwbyte Ds1307w ' send address I2cwbyte 0 ' start address in 1307 I2cstart ' Generate start code I2cwbyte Ds1307r ' send address I2crbyte _sec , Ack I2crbyte _min , Ack ' MINUTES I2crbyte _hour , Ack ' Hours I2crbyte Weekday , Ack ' Day of Week I2crbyte _day , Ack ' Day of Month I2crbyte _month , Ack ' Month of Year I2crbyte _year , Nack ' Year I2cstop _sec = Makedec(_sec) : _min = Makedec(_min) : _hour = Makedec(_hour) _day = Makedec(_day) : _month = Makedec(_month) : _year = Makedec(_year) Return Setdate: _day = Makebcd(_day) : _month = Makebcd(_month) : _year = Makebcd(_year) I2cstart ' Generate start code I2cwbyte Ds1307w ' send address I2cwbyte 4 ' starting address in 1307 I2cwbyte _day ' Send Data to SECONDS I2cwbyte _month ' MINUTES I2cwbyte _year ' Hours I2cstop Return[/code:1:1c66baf543] How do I do it when the time is not cleared? :lol: :lol:
Viewing all 20563 articles
Browse latest View live


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