Welcome
Whether someone may share library mmcsd_hc.lib
↧
BASCOM-AVR Old versions : I need a library mmcsd_hc.lib : NEWTOPIC
↧
BASCOM-AVR Old versions : The graphic display to help the driver HX8353-C : REPLY
This display works on the controller ST7735
I have something like this but I miss the library mmcsd_hc.lib
my version Bascom is 2.0.7.3 and no have this library
can anyone look at this code and snap out of it something of a lack of library?
↧
↧
Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY
Mr. Shilov,
I saw you are very experienced with these useful lcd displays. I'm using my nokia 3100 display with the PCF8833 controller with the lib supplied with BASCOM. It works fine, but if the display is in the phone it is initialize it differently. If the phone do the initialization i can read the display without the backlight if the xmega does it it's unreadable without backlight. I think the phone turn on some special mode on the controller or something. I captured both startups (with the phone and with the xmega) with my saleae logic analyze, here is the zip containing both captures:
[url]http://193.30.164.159/pcf8833.zip[/url]
You can open the files with saleae's free app:
[url]http://support.saleae.com/hc/en-us/articles/200791005-Logic-1-1-19-Beta[/url]
If you have some free time/resource can you look at them? Can it be possible to emulate the phone initialization?
Thank you in advance!
DC
↧
BASCOM-AVR : Sniffing serial Lines with BASCOM Shiftin? : REPLY
Hello Albertsm!
[quote:de5873f9e2="albertsm"]you can not use the SPI because all lines are connected and it would disturb your radio.
but maybe you can try the slave mode. (see samplespi). and then only connect CS, clock and MOSI. do not connect MISO. it could work.[/quote:de5873f9e2]
Of course, I know the harware of SPI an more.
I can only as SPI-Save on the bus, an this is done.
For the first trys to build the code I don't know that the "Spiin" and "Spimove" commands not for save-mode.
But I was happy to find your second sampel here:
http://wiki.mcselec.com/bavr/SPISLAVE/
I have only min. changes done (Array agains simple variable, an counter for Array and Printbin).
This modif. sampel will work well and my problem is away.
Now I become all data from the bus that I wanna sniffing.
[code:1:de5873f9e2]
$regfile = "m16adef.dat" ' specify the used micro
$crystal = 16000000 ' used crystal frequency
$baud = 115200 ' use baud rate
$hwstack = 320 ' default use 32 for the hardware stack
$swstack = 100 ' default use 10 for the SW stack
$framesize = 400 ' default use 40 for the frame space
Dim B(22) As Byte , Rbit As Bit , Bsend As Byte , C As Byte
C = 0
Config Pinb.6 = Output 'Hardware MISO (Slave-Out) bleibt offen
Config Spi = Hard , Interrupt = On , Data Order = Msb , Master = No , Polarity = Low , Phase = 0 , Clockrate = 128
Spiinit
On Spi Spi_isr Nosave
Enable Interrupts
Do
Waitms 5 'wait for end of SPI-Stream
If Rbit = 1 Then 'If SPI-Data is received
Printbin B(1) 'print binary th full array of complete SPI-Stream
Reset Rbit 'reset "Received"
C = 0 'reset Array-Counter
End If
Loop
Spi_isr:
C = C + 1
push r24 ; save used register
in r24,sreg ; save sreg
push r24
B(c) = Spdr
Set Rbit
pop r24
!out sreg,r24 ; restore sreg
pop r24 ; and the used register
Return
[/code:1:de5873f9e2]
I must cut the Array at 22 bytes, because the sck will drive longer and behind the real data there are many faulty &h00.
But, it do what I want to analyse the segment-data of the LCD.
Thanks!
Juergen Huser, DG7GJ
[/code]
↧
Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY
I can't unpack archive.
↧
↧
BASCOM-AVR : Sniffing serial Lines with BASCOM Shiftin? : REPLY
It sounds like you have it working, which is good news!
Another option you might consider is using an Xmega to do the bus sniffing.
Bascom supports the Xmegas, and their clock as a PLL multiplier, so it is easy to overclock the chip.
Although I would not do it for a commercial product, overclocking the chip for your own use is fine.
I've done a couple projects were I ran the Xmega at 48 MHz for a DDS signal generator. Others have reported using it into the low 60 MHz range, although that failed for me. Note that the ADC and DAC won't work accurately when overclocked, and the EEPROM also won't work at the overclocked speeds. But simple stuff seems to run fine.
If you need either faster sampling, or more processing time between samples, then you might want to consider this.
JC
↧
BASCOM Project Blog : Building a Webserver with a Wiznet W5100 : REPLY
Now a big step forward using the file extension cgi .
When we read a .cgi file it is read one byte at a time and we are looking for a byte value of 126 (~) this tells us that the two bytes that follow are a string of two characters that are a HEX number and we will replace the 3 bytes with a variable that can represent for example our IP Number , MAC address or the value of an ADC Chanel. By using a HEX number we can have up to 256 variables with just 2 bytes. So now by putting the text ~E0 in a .cgi file it will be replaced by our MAC address.
This lets us write web pages on the SD card with variables embedded in them. Note all other files without the cgi extension are read 1000 bytes at a time making it faster to send graphics files etc.
Regards Paul
↧
Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY
Something gone wrong with the file... Strange. I repacked it and re-uploaded to dropbox:
[url]https://www.dropbox.com/s/r572nz5680n3az2/pcf8833_init.zip[/url]
↧
BASCOM-AVR Old versions : I need a library mmcsd_hc.lib : REPLY
Hi, you can find it in your Bascomlib directory.
↧
↧
BASCOM-AVR Old versions : I need a library mmcsd_hc.lib : REPLY
Yes I know where is folder with library I ask about upload of this lib
problem is sorted
↧
Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY
Strange data for initialization. You can read about driver for [b:da964f4850]Philips PCF8833[/b:da964f4850] and [b:da964f4850]Epson S1D15G00[/b:da964f4850] (Nokia3100/3120/5100/6100/6600/6610/7200/7210/7250) here:
http://www.elecfreaks.com/store/download/datasheet/shield/6100_Display_Driver.pdf
↧
Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY
Yes indeed. I saw that pdf and also gone throught the PCF8833 datasheet several times, and the lib comes with bascom does the initialization as per discribed in the datasheet. I think nokia uses some sort of special init, but i don't know how to implement it in bascom.
↧
BASCOM-AVR : XMEGA SPI : NEWTOPIC
Dear Bascom Fanboys,
I struggle for a basic SPI reading with an XMEGA128A1U
The SPI device is a SST25VF016B flash memeory I already use it with an AtMega
Here under the snipped code.
Any idea of what I have missed ? thank you in advance.
Olivier
'*** SPI ***
'~~~~~~~~~~~
Config Porth.0 = Output : Flash_cs Alias Porth.0 : Flash_cs = 1
Config Spif = Hard , Master = Yes , Mode = 3 , Clockdiv = Clk2 , Data_order = Msb , Ss = None
Open "SPIF" For Binary As #10
'Sub Read_jedec_id
Flash_cs = 0
Print #10 , Opcode_jedec_id_read
Input #10 , Scratch_pad(1)
Input #10 , Scratch_pad(2)
Input #10 , Scratch_pad(3)
Flash_cs = 1
Print #6 , "Jedec_Id=" ; Scratch_pad(1) ; "-" ; Scratch_pad(2) ; "-" ; Scratch_pad(3)
'End Sub
[b:8245298091][color=red:8245298091](BASCOM-AVR version : 2.0.7.7 )[/b:8245298091][/color:8245298091]
↧
↧
BASCOM-AVR : XMEGA SPI : REPLY
Hi,
Quote from the helpfile:
[quote:70e31086c1]
If you need to use a different pin for SS or when you need to switch the logic level yourself for SS, and thus you use the SS=NONE option, you must setup the SS pin, even if you do not use it yourself. You must prevent that the SS pin will be made low in input mode since that will set the SPI into SLAVE mode, even while it was in MASTER mode.
[/quote:70e31086c1]
Your using the spi from portf so you should set the SS pin from portf (portf.4) to output.
↧
BASCOM-AVR : XMEGA SPI : REPLY
You are a legend Evert!
Setting the SS=None is not enough, you must indeed set is as output, nice learning !
thanks a lot!
Olivier
↧
BASCOM-AVR : EEPROM : NEWTOPIC
HI,EVERYBODY
IN ATMEGA 128 DATASHEET Write/Erase 100,000 EEPROM
IN MY PROGRAM:
DIM A AS ERAM BYTE,B AS LONG
DO
A=3
WAITMS 5
LOOP UNTIL B=100000
END
I HAVE QUASTION:IN THIS CASE ATMEGA128 WILL DAMAGE?
[b:cb9161809f][color=red:cb9161809f](BASCOM-AVR version : 2.0.4.0 , Latest : 2.0.7.7 )[/b:cb9161809f][/color:cb9161809f]
↧
Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY
Mr. Shilov,
Im using lcd Nokia 3220 (pcf8833). Everything works OK, except command SHOWPIC!. I cant show up Picture. I'm using Windows build in MSPaint program to build pictures. What to do?
Best regards
Boris
$regfile = "m32def.dat"
$crystal = 8000000
Config Graphlcd = Color , Controlport = Portc , Cs = 1 , Rs = 0 , Scl = 3 , Sda = 2
$lib "lcd-pcf8833.lbx"
Cls
Showpic 0 , 0 , Smile
Wait 1
End
Smile:
$bgf "smile.bgf"
↧
↧
Share your working BASCOM-AVR code here : NOKIA-3310/5110 LCD library : REPLY
This is Color LCD - you must use color picture - BGC:
[code:1:59a3456816]Smile:
$bgf "smile.bgc"[/code:1:59a3456816]
Picture converter: http://www.mcselec.com/index.php?option=com_docman&task=doc_download&gid=168&Itemid=54
↧
BASCOM-AVR : Sensirion SF04 flow sensor : REPLY
Hi,
Finally got the sensor working.
A tip for anyone else who tries to get a Sensirion ul/sec flow sensor working, ignore the sample code and documentation from their web site and contact their Support directly, before trying anything.
Regards
Ian Dobson
↧
BASCOM-AVR : EEPROM : REPLY
The EEPROM is guarateed to be reliable for 100000 wr/erase cycles.
If that's your point, then you are right.
But in your sample, you assign the same value 3 for 100000 times.
I am not shure if that makes a differenz.
But if you are really going to store the same value for many times, and maybe have one different value every millionth time, than there might be a way out:
Reading the eeprom does not do any harm. So first read the eeprom, and do not write to it unless the content would change.
↧