I have attached my first draft of my controller board. I still have to add some ground pours and more labeling to the top level.
I offer this as a talking point since it is a departure from using a PIC - which so many controllers are based on.
This family of micros is used a lot in automotive applications. It has a PLL - so it only needs a 4Mhz crystal - but internally the instruction bus runs at 20 Mhz (single cycle instruction execute in 50 nsecs).
When you go to a large pin count cpu, as I have done here, you need to watch to make sure you don't violate the current sinking limits of the device.
This cpu can sink 6+ ma on each pin easily - but the part has max specification of 100 ma at VSS.
Since this is a 24 channel controller driving 5 to 6 mil opto's in the SSRs - that results in 125 ma with all channels commanded on.
I used buffers - provides ESD protection to the micro and moves the current sink outside of the micro.
I have departed in another area from most controllers on this site - I am using full-dulpex RS485.
I will have all controller (10 of them next year) operating on a single bus.
Each controller will have a bootloader embedded - so I can reprogram the controller and/or run various diagnostic routines on any specific controller while it/they are setup in the field.
With an instruction cycle time of 50 nsec - I have plenty of cpu bandwidth to do most anything.
The BOM for the parts on the board currently sits at $11.17. Board measure 5.35 x 3.625 inches. I did not attempt to squeeze it down as tight as possible.
Joe
This is some GREAT reading. Wow!
Way over my head but very interesting......
Chuck P.
buckanear wrote:FYIthe Spartan3 series FPGAs can sink and source 24mA. That generally is more than most microcontrollers on the market today. Now the MOC3023M requires only 5mA source current. That is well within the capabilities of the Spartan3A.
Not sure what Altera chips are capable of. Need to research that.
just thinking out loud
james
But what is the TOTAL current that the chip can source/sink. If you're talking about 24 or more channels, can it accommodate the total draw if all outputs are on simultaneously -- not an uncommon desire...
Those types of chips have lots of power and ground pins (not just one or two like the small PICs), so that is generally not an issue.
have a look at HCT541 to replace the HCT244. All inputs are on one side. It will make routing your board better and allow better Vcc tracks.
maight make adding some de coupling caps on or near IC1,2&3 feasable.

