View Single Post
Old 12-09-2010, 02:57 AM   #28 (permalink)
FalconFour
EcoModding Lurker
 
FalconFour's Avatar
 
Join Date: Sep 2010
Location: Fresno, CA
Posts: 78

LEAF - '11 Nissan LEAF
Thanks: 4
Thanked 9 Times in 7 Posts
edit: holy crap, there's another page there. so disregard this post for now... lol.
Quote:
^ Obsessive optimization, but it pays off, the code runs very reliably.

The two pins for injector pulses makes sense, I saw that right off the bat when I looked at the code - one interrupt for rising, one for falling, and it times the difference between the two. Very smart decision there.

What I don't understand is why the LCD data pins are such a spaghetti rat's mess - pins 13, 12, 8, and 7 for bits 3, 2, 1, and 0, for each single character... why not just wired straight across digital 13-12-11-10 - why the break in pins? And the analog pins aren't tied to interrupts (right?), so why separate the VSS signal analog pin from the button pins? - why not just go 0-1-2-3?

Just curious about the design decisions... if those turn out to be silly, then I'll start criticizing
  Reply With Quote