Hardware PWM
Moderators: David Barker, Jerry Messina
I Have now but its specific to the 18f458, but thats not the point.
Most if not all the 18f series have pwm included but the number and port location varies, i dont have the abilitiy the write a module that will abstract the hardware nicely.
Many people coming to this compiler will be hobbiests or will have migrated from another pic basic compiler. It will put them off if they see there are obvious things missing.
The point of a high level language is to make it fast to develope the software.
Richard
PS if its so fast to write a module for the HW PWM why isnt there one included.?
Most if not all the 18f series have pwm included but the number and port location varies, i dont have the abilitiy the write a module that will abstract the hardware nicely.
Many people coming to this compiler will be hobbiests or will have migrated from another pic basic compiler. It will put them off if they see there are obvious things missing.
The point of a high level language is to make it fast to develope the software.
Richard
PS if its so fast to write a module for the HW PWM why isnt there one included.?
Hmmm..
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact:
I'm glad you have managed to put something together. As you say, the advantage of a high level language is that it makes it faster to develop software.I Have now but its specific to the 18f458, but thats not the point.
That's true - to cover all devices takes a lot of time. Post your code here or on the wiki - perhaps we can use it as a basis for a new module that can evolve over timeMost if not all the 18f series have pwm included but the number and port location varies, i dont have the abilitiy the write a module that will abstract the hardware nicely.
I see your point and would hope it wouldn't put people off. I've had to make some decisions on what was available in the release, given resources available and time constraints. I just cannot do everything.Many people coming to this compiler will be hobbiests or will have migrated from another pic basic compiler. It will put them off if they see there are obvious things missing.
As jack pointed out, PWM for a single device is a fairly trivial task but other modules (such as GLCD, USB etc) are a little more tricky and I feel it would be better if I spent my time on these type of modules.
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact:
Yout could try here
http://www.sfcompiler.co.uk/wiki/
more specifically
http://www.sfcompiler.co.uk/wiki/pmwiki ... er.Modules
Look at the way people have implemented the drivers (and let the GLCD module do most of the higher level rendering work). If you can read C, there is some useful looking stuff here...
http://www.picant.com/c2c/examples/t6963/t6963.h.html
http://www.picant.com/c2c/examples/t6963/t6963.c.html
which shows things like initialisation sequence etc...
http://www.sfcompiler.co.uk/wiki/
more specifically
http://www.sfcompiler.co.uk/wiki/pmwiki ... er.Modules
Look at the way people have implemented the drivers (and let the GLCD module do most of the higher level rendering work). If you can read C, there is some useful looking stuff here...
http://www.picant.com/c2c/examples/t6963/t6963.h.html
http://www.picant.com/c2c/examples/t6963/t6963.c.html
which shows things like initialisation sequence etc...