Example projects, programming and debugging tools to work with Elan EM78 - Page 1
Forum section: electronics / general

author: cybergibbons
author_rank: Frequent Contributor
timestamp: May 14, 2012, 09:34:48 pm
content: I am working on several projects that involve reverse engineering of small microcontroller systems. Increasingly I am finding that these containElan Microelectronics Corpmicrocontrollers in them, most commonly the EM78 series (specifically theEM78P156KandEM78P418N). These appear to be very low cost 8-bit processors with fairly typical peripherals and OTP ROM. Thiswikipedia pageand datasheets suggest they have some similarity with PIC processors, but it would be a stretch to call them clones based on just the information I have.I presume that they are targeted at cheap mass-produced consumer electronics as OTP ROM makes development awkward.I have found these in many products across a range of manufacturers now, and I am surprised at how little they are mentioned on the internet as a whole, and how poor the documentation is. EMC does not seem interested in helping those who aren't buying thousands of units.Here is a PDF of a PowerPointpresentationthat refers to the in-system-programming in a roundabout way.There is a big page of supportingdocumentation. However, most of these 404 for me, and if I google for other copies, they are of poor quality and very disjointed. "AN-023 On Board Program for EM78 Family's OTP" looks interesting - but if this is agoogle cacheof it (going by filename), then it isn't.There are references to using the UWTR and DWTR programmers. I can't find where to buy these though. There have been listings onebay, but they are untested and infrequent.I have just foundthis document("How to Implement ICP Using ELAN EM78PXXXGeneral Purpose OTP MCUs") which has a couple of interesting pieces of information:> Note: for manufacturers wanting to develop their own OTP programming> hardware, Elan’s OTP programming specifications are available free> of charge under NonDisclosure Agreement (NDA).and> The EM78P156 is pin and function compatible with Microchip PIC> 16C54/55/56 (see Elan application note “Replacing Microchip’s PIC> 16C54/55/56/57 with Elan Microelectronic’s EM78P156/P447”).I can't find this application note unfortunately.There are also references to a robot kit called "Cybot" and how they are PIC clones.I have yet to get any response from their support and I have tried calling and emailing. The domain "www.elan-europe.com" mentioned on some datasheets is dead, so I am stuck with Taiwan.So, my questions are:1. How close are these to clones of PIC processors? Sounds like the EM78P156K is a direct clone - does this include ISP?2. Does anyone know of any example projects, hobbyist or commercial, that are documented on the internet and use this series of processors?3. Is there an open source or otherwise freely available toolchain for them?4. Mention is made of in system programming in several data sheets and pages, but I can't find any documentation. Does anyone know of any?

author: free_electron
author_rank: Super Contributor
timestamp: May 14, 2012, 11:07:05 pm
content: all those links work perfectly fine from here ...here is some more stuff :http://www.emc.com.tw/eng/st_8bit.asp##A000001

author: cybergibbons
author_rank: Frequent Contributor
timestamp: May 14, 2012, 11:12:56 pm
content: Seriously - those links haven't worked for 7 months. I sent them another couple of emails nagging them about it this week as the non-English app notes worked fine. I wonder if they sorted them?Still, there is no ISP protocol app note and the one about replacing pics is missing, an I can't purchase hardware that can be used by their software.

author: free_electron
author_rank: Super Contributor
timestamp: May 14, 2012, 11:52:54 pm
content: you got something wonky with your computer .... i just downloaded all of them without a single problem.i sent you a pm to email me. i'll send you a zip file with all that stuff in it.

author: steve_w
author_rank: Regular Contributor
timestamp: May 15, 2012, 12:10:13 am
content: Worked OK for me too.regardsSW

author: amspire
author_rank: Super Contributor
timestamp: May 15, 2012, 12:50:14 am
content: Quote from: cybergibbons on May 14, 2012, 09:34:48 pmQuote from: free_electron on May 14, 2012, 11:07:05 pmSomeone has actually got this link to work?As far as I can see, the DNS servers for this domain do not have any entry for this domain, so I am not sure how it can possibly work for anybody.I double checked with Alertra.com and it didn't work from 10 different sites around the workd including the US, London, Singapore HK, and China.As far as I can see, the domain has had no traffic for at least the last 3 months.Richard.

author: free_electron
author_rank: Super Contributor
timestamp: May 15, 2012, 04:29:22 am
content: I can download all the files from that big documentation page without problems. A bunch of pdf files and a bunch of rar files. All work without error.I have not tried the europe stuff. The op os after the appnotes and software. That all downloads fine from the taiwan site.

author: cybergibbons
author_rank: Frequent Contributor
timestamp: May 15, 2012, 05:51:31 am
content: Sorry - maybe I wasn't clear on the the earlier reply - when I looked at the page 7 months ago, those links didn't work. I emailed about this at the time. I then came back to this project, and found they were still broken, emailed them last week and yesterday morning, and now they work fine. I think they may have finally fixed them. Previously I was getting a Chinese language 404.