From: Marcos C. <nit...@gm...> - 2009-11-12 12:32:04
|
Hi, I have written a little c library to control a hd44780-compatible LCD from my 89c51ed2. It's plainc C, simple enough to use it with other microcontrollers. I didn't find anything lcd-related in /sdcc/lib so I tought this would be useful for other people. Do you guys accept libraries to be included in next releases? Its quite simple, just lcd_init(), lcd_busy() and so on; and It's GPL.. Regards -- Marcos GNU/Linux user #469721 |
From: Ori I. <or...@he...> - 2009-11-12 15:29:54
|
I would be happy to get this library, I am now in the middle of project that needs LCD. Do you interface the LCD as 4 or 8 bites? -- Ori Idan On Thu, Nov 12, 2009 at 2:24 PM, Marcos Chaparro <nit...@gm...>wrote: > Hi, > I have written a little c library to control a hd44780-compatible LCD > from my 89c51ed2. It's plainc C, simple enough to use it with other > microcontrollers. > > I didn't find anything lcd-related in /sdcc/lib so I tought this would > be useful for other people. > Do you guys accept libraries to be included in next releases? > > Its quite simple, just lcd_init(), lcd_busy() and so on; and It's GPL.. > > Regards > > -- > Marcos > GNU/Linux user #469721 > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > |
From: Bruno de P. M. <bru...@gm...> - 2009-11-12 16:00:31
|
Hi guys, I'm playing with SDCC for a while, always using RS232 for debug and communication, recently replaced my workstation for a notebook and no more serial ports available, so I decided to just abandon the RS232 and go for the USB. I've been working with Vasco-PUF USB framework but kept thinking that SDCC might have a library implementation for USB, specially for CDC with is simpler. How can I start working with USB using SDCC not using third-part libraries like Vasco-PUF ? -- Bruno de Pádua Mélo IT Specialist - IBM J2EE Developer Sun Certified Java Programmer (SCJP) 5 Certified email : bru...@gm... / bp...@br... |
From: Maarten B. <sou...@ds...> - 2009-11-12 16:18:02
|
Bruno, Have you considered using one of the USB-UART converters from FTDI, SiLabs or Prolific? Much easier than augmenting your application with a complete USB stack just for debug output. And what if your MCU doesn't have USB, only UART? Maarten > Hi guys, I'm playing with SDCC for a while, always using RS232 for debug > and communication, recently replaced my workstation for a notebook and > no more serial ports available, so I decided to just abandon the RS232 > and go for the USB. > > I've been working with Vasco-PUF USB framework but kept thinking that > SDCC might have a library implementation for USB, specially for CDC with > is simpler. > > How can I start working with USB using SDCC not using third-part > libraries like Vasco-PUF ? > > -- > Bruno de Pádua Mélo > IT Specialist - IBM J2EE Developer > Sun Certified Java Programmer (SCJP) 5 Certified > email : bru...@gm... / bp...@br... > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > > |
From: Bruno de P. M. <bru...@gm...> - 2009-11-12 17:15:27
|
Sorry Maarten, I didn't explain it entirely (my fault) and glad you answered, I don't use "just for debugging", I use it to exchange data to the PC, it's an RF 433Mhz RC auto telemetry system, which connects to the PC to show current motor temperature and other useless stuff :) I have a USB-Serial adapter, but I just think this is the time to abandon RS232 and finally learn USB communication, which I've been postponing for too much time. It uses a PIC 18F4550 on both ends so it has built-in USB capabilities. I tried using Microchip's USB stack, but just can't figure out how to use it with SDCC, and even Vasco-PUF, which searching the web is apparently the most used one, I'm having troubles with. No possibility to use Windows also, I depend too much on my Linux machine, this is why I've been using SDCC so far. On 11/12/2009 02:17 PM, Maarten Brock wrote: > Bruno, > > Have you considered using one of the USB-UART converters from FTDI, SiLabs > or Prolific? Much easier than augmenting your application with a complete > USB stack just for debug output. And what if your MCU doesn't have USB, > only UART? > > Maarten > > >> Hi guys, I'm playing with SDCC for a while, always using RS232 for debug >> and communication, recently replaced my workstation for a notebook and >> no more serial ports available, so I decided to just abandon the RS232 >> and go for the USB. >> >> I've been working with Vasco-PUF USB framework but kept thinking that >> SDCC might have a library implementation for USB, specially for CDC with >> is simpler. >> >> How can I start working with USB using SDCC not using third-part >> libraries like Vasco-PUF ? >> >> -- >> Bruno de Pádua Mélo >> IT Specialist - IBM J2EE Developer >> Sun Certified Java Programmer (SCJP) 5 Certified >> email : bru...@gm... / bp...@br... >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Sdcc-user mailing list >> Sdc...@li... >> https://lists.sourceforge.net/lists/listinfo/sdcc-user >> >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > > -- Bruno de Pádua Mélo IT Specialist - IBM J2EE Developer Sun Certified Java Programmer (SCJP) 5 Certified email : bru...@gm... / bp...@br... External Line: (+55) 0xx44 3227 3586 Mobile: (+55) 0xx44 9994 2262 |
From: Gordon H. <gor...@dr...> - 2009-11-12 16:22:11
|
On Thu, 12 Nov 2009, Bruno de Pádua Mélo wrote: > Hi guys, I'm playing with SDCC for a while, always using RS232 for debug > and communication, recently replaced my workstation for a notebook and > no more serial ports available, so I decided to just abandon the RS232 > and go for the USB. > > I've been working with Vasco-PUF USB framework but kept thinking that > SDCC might have a library implementation for USB, specially for CDC with > is simpler. > > How can I start working with USB using SDCC not using third-part > libraries like Vasco-PUF ? Get a USB to serial converter for your notebook... Or build a USB to serial convertor into your project - then chips themselves are really cheap now and host drivers very standard. USB with emulated rs232 in, rs232 out... e.g.: http://www.skpang.co.uk/catalog/index.php?cPath=23_38_61 that's in the UK where I am, but I'm sure you can find something locally. Gordon |
From: Dave M. <mc...@ne...> - 2009-11-12 17:07:27
|
On Nov 12, 2009, at 10:59 AM, Bruno de Pádua Mélo wrote: > Hi guys, I'm playing with SDCC for a while, always using RS232 for > debug > and communication, recently replaced my workstation for a notebook and > no more serial ports available, so I decided to just abandon the RS232 > and go for the USB. Hmm. The whole world uses RS232 for that, and likely always will. I'd suggest getting a USB<->RS232 adapter. I've been using them for years and they work wonderfully. -Dave > -- Dave McGuire Port Charlotte, FL |
From: Vaclav P. <vac...@se...> - 2009-11-12 18:57:34
|
> ---------------------------------------- > Hi guys, I'm playing with SDCC for a while, always using RS232 for debug > and communication, recently replaced my workstation for a notebook and > no more serial ports available, so I decided to just abandon the RS232 > and go for the USB. > > I've been working with Vasco-PUF USB framework but kept thinking that > SDCC might have a library implementation for USB, specially for CDC with > is simpler. > > How can I start working with USB using SDCC not using third-part > libraries like Vasco-PUF ? > Hi Bruno, approximately 1 year ago I played with Alexander Enzmann's HID stack. He wrote USB stack completely in SDCC. And - it worked for me as well. Code can be downloaded on Nuts & Volts pages or it is used here https://sourceforge.net/projects/evausb/ as well. Best Regards, Vasek |
From: Marcos C. <nit...@gm...> - 2009-11-12 17:33:42
|
On Thu, Nov 12, 2009 at 12:02 PM, Ori Idan <or...@he...> wrote: > I would be happy to get this library, I am now in the middle of project that > needs LCD. > Do you interface the LCD as 4 or 8 bites? > > -- > Ori Idan 8 bytes, just a .c and a .h. Where should I put the sources? I can mail you, so you can take a look to the code. -I would really like to have this kind of libs included with sdcc-. A few mates didn't use sdcc just because it lacks some libraries like this :( -- Marcos GNU/Linux user #469721 |
From: Ori I. <or...@he...> - 2009-11-12 19:34:30
|
I would be happy if you can send the files to me in private email. (Email: or...@he...) -- Ori Idan On Thu, Nov 12, 2009 at 7:33 PM, Marcos Chaparro <nit...@gm...>wrote: > On Thu, Nov 12, 2009 at 12:02 PM, Ori Idan <or...@he...> wrote: > > I would be happy to get this library, I am now in the middle of project > that > > needs LCD. > > Do you interface the LCD as 4 or 8 bites? > > > > -- > > Ori Idan > > 8 bytes, just a .c and a .h. > > Where should I put the sources? I can mail you, so you can take a look > to the code. -I would really like to have this kind of libs included > with sdcc-. > > A few mates didn't use sdcc just because it lacks some libraries like this > :( > > > -- > Marcos > GNU/Linux user #469721 > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > |
From: Maarten B. <sou...@ds...> - 2009-11-12 18:10:01
|
Marcos, SDCC does not have any libraries for any hardware that can be attached to any microcontroller. I don't think we want to take this up either. Such an implementation is usually highly mcu dependant and totally compiler independant. Good places to publish this kind of stuff could be the SDCC OKR or since it's 8052 related www.8052.com. What we can do is put a link to it on our links page. I hope I didn't disappoint you too much. Maarten > On Thu, Nov 12, 2009 at 12:02 PM, Ori Idan <or...@he...> wrote: > > I would be happy to get this library, I am now in the middle of project that > > needs LCD. > > Do you interface the LCD as 4 or 8 bites? > > > > -- > > Ori Idan > > 8 bytes, just a .c and a .h. > > Where should I put the sources? I can mail you, so you can take a look > to the code. -I would really like to have this kind of libs included > with sdcc-. > > A few mates didn't use sdcc just because it lacks some libraries like this :( > > > -- > Marcos > GNU/Linux user #469721 |
From: Marcos C. <nit...@gm...> - 2009-11-12 19:48:18
|
On Thu, Nov 12, 2009 at 3:09 PM, Maarten Brock <sou...@ds...> wrote: > Marcos, > > SDCC does not have any libraries for any hardware that > can be attached to any microcontroller. I don't think we > want to take this up either. Such an implementation is > usually highly mcu dependant and totally compiler > independant. > > Good places to publish this kind of stuff could be the > SDCC OKR or since it's 8052 related www.8052.com. What > we can do is put a link to it on our links page. > > I hope I didn't disappoint you too much. > Maarten > Oh, I see. I have no problem then. I'll send the files to the OKR, and Ori, today or tomorrow. I understand how painful is to support such a variety of architectures. Best regards :) -- Marcos GNU/Linux user #469721 |
From: Roel A. <ro...@ad...> - 2009-11-12 18:35:41
|
On Thu, Nov 12, 2009 at 02:33:29PM -0300, Marcos Chaparro wrote: > > A few mates didn't use sdcc just because it lacks some libraries like this :( > I've been thinking that a site with diferent libraries for SDCC would be a nice idea. Need to have a bit of quality control, and the diferent architectures probably need diferent hardware files. But, a collection of some (hardware)-libs would be nice. That we we don't have bother the compiler people with this sort of thing, would be a nice comunity driven site. Just me 2c. Roel Adriaans. |
From: Gordon H. <gor...@dr...> - 2009-11-12 18:49:44
|
On Thu, 12 Nov 2009, Roel Adriaans wrote: > On Thu, Nov 12, 2009 at 02:33:29PM -0300, Marcos Chaparro wrote: >> >> A few mates didn't use sdcc just because it lacks some libraries like this :( >> > > I've been thinking that a site with diferent libraries for SDCC would be a > nice idea. Need to have a bit of quality control, and the diferent > architectures probably need diferent hardware files. But, a collection of > some (hardware)-libs would be nice. > > That we we don't have bother the compiler people with this sort of > thing, would be a nice comunity driven site. I've been using AVR proccessors recently - mostly via the Arduino platform and they do seem to have quite a good community resource going for them, however, in Aruino-land, everything is fairly well defined and I fear that the number and variety of processors supported here might not make that possible... And in that world, I've actually ended up re-writing everything of theirs to work in my world.... There's some shockingly bad code out there )-: but it was nice to have some templates to work from. Gordon |
From: Maarten B. <sou...@ds...> - 2009-11-12 19:10:45
|
Roel, > I've been thinking that a site with diferent libraries for SDCC would be a > nice idea. Need to have a bit of quality control, and the diferent > architectures probably need diferent hardware files. But, a collection of > some (hardware)-libs would be nice. Others have thought the same thought years ago and since then there is the SDCC Open Knowledge Resource (OKR) which is linked on our website and in the manual. http://sdccokr.dl9sec.de/ > That we we don't have bother the compiler people with this sort of > thing, would be a nice comunity driven site. Thank you, Maarten |
From: Alexandre S. C. M. <ale...@gm...> - 2009-11-13 15:47:55
|
Hi Bruno. I'm playing with PIC18F4550 and I'm testing it's capabilities. I'm with some trouble with I2C on it, but I'll get trough it. And my next step is use USB communication to, as you wish to use in your project. So, I don't know yet how it works, but I'll work on it. I think we could work together on it with SDCC. Maybe building a USB SDCC stack fro PIC18F4550. By the way, I depend on Linux to I quit using "windows" on my house! Best regards, Alexandre Martins ----- Mensagem Original----- De: Bruno de Pádua Mélo <bru...@gm...> Reply-to: sdc...@li... Para: sdc...@li... Assunto: [Sdcc-user] USB CDC or HID implementation on SDCC Data: Thu, 12 Nov 2009 13:59:54 -0200 Hi guys, I'm playing with SDCC for a while, always using RS232 for debug and communication, recently replaced my workstation for a notebook and no more serial ports available, so I decided to just abandon the RS232 and go for the USB. I've been working with Vasco-PUF USB framework but kept thinking that SDCC might have a library implementation for USB, specially for CDC with is simpler. How can I start working with USB using SDCC not using third-part libraries like Vasco-PUF ? |
From: Pavel P. <pi...@cm...> - 2009-11-25 13:53:31
|
Hello all, if somebody has interrest, we have USB stack for NXP PDIUSB, LPC2148 and some other MCUs which has been used with SDCC. We use it for our own vendor specific protocol in USB <-> uLan converter, firmware loaders etc., but it has been successfully used for HID device development. It would be nice to have CDC for it, because I hope, it could be used to use it as COM/tty under Linux and Windows without writting specific drivers. We plan to do that, but have not found time for CDC yet. LPC/MSC51 base for direct use without operating system (there exists branches for mc683xx, h8s and others) http://ulan.git.sourceforge.net/git/gitweb.cgi?p=ulan/sysless;a=summary USB stack library http://ulan.git.sourceforge.net/git/gitweb.cgi?p=ulan/sysless;a=tree;f=libs4c/usb;h=be69b4e24cc6ebe3b536f62b15c75da0a5d57d3c;hb=HEAD HID demo code using above mentioned stack http://rtime.felk.cvut.cz/gitweb/sysless-lpc21xx.git/tree/HEAD:/app/usbhiddemo Best wishes, Pavel Pisa e-mail: pi...@cm... www: http://cmp.felk.cvut.cz/~pisa university: http://dce.felk.cvut.cz/ company: http://www.pikron.com/ On Friday 13 November 2009 16:47:35 Alexandre Sérgio Cardoso Martins wrote: > Hi Bruno. > > I'm playing with PIC18F4550 and I'm testing it's capabilities. I'm with > some trouble with I2C on it, but I'll get trough it. And my next step is > use USB communication to, as you wish to use in your project. So, I > don't know yet how it works, but I'll work on it. I think we could work > together on it with SDCC. Maybe building a USB SDCC stack fro > PIC18F4550. > > By the way, I depend on Linux to I quit using "windows" on my house! > > Best regards, > > Alexandre Martins > > > ----- Mensagem Original----- > De: Bruno de Pádua Mélo > <bru...@pu...> Reply-to: > sdc...@pu... Para: > sdc...@pu... > Assunto: [Sdcc-user] USB CDC or HID implementation on SDCC > Data: Thu, 12 Nov 2009 13:59:54 -0200 > > > Hi guys, I'm playing with SDCC for a while, always using RS232 for debug > and communication, recently replaced my workstation for a notebook and > no more serial ports available, so I decided to just abandon the RS232 > and go for the USB. > > I've been working with Vasco-PUF USB framework but kept thinking that > SDCC might have a library implementation for USB, specially for CDC with > is simpler. > > How can I start working with USB using SDCC not using third-part > libraries like Vasco-PUF ? |