Nice job Lejaune
Switching to SMD devices (see post # 383) might help to solve your space issues.
I have 2 questions about your post:
Right now I'm modding my Sigma DL Aspherical IF 28-300; hope to post here some success soon.
- why did you remove the "pin change int routine"?
- how much does the SLEEP mode reduce the power requirements? Is the constant power a common feature with Canon DSLR - I'v never checked with my 550D.
kind regards
Gerhard
Gerhard,
Yes, I plan to use SMD and small crystals.
Answers to your questions.
1. I assume that the lens only samples the DCL on the rising edge of DCLK. If this is the case, then the falling edge DCLK interrupt will be sufficient. DCL is copied within the interrupt service routine (except 0x13->0x12) before the rising edge of the DCLK. Second reason is that I want to avoid multiple level INT on the processor. Does the camera use DCL without DCLK for other purposes? Perhaps Slein or Nightshot can comment?
2. According to the datasheet, in SLEEP mode, PIC12F629 consumes 2.9 nA typical and 995 nA max current. So even in worst case, the current consumed by the CPU would be negligible for a 1500 mAH battery. The disadvantage is that it takes about 50ms for the crystal oscillator to ramp up. During the 50ms, the DCL communication will be lost but the camera seems to be tolerant to it. My cameras are 300D and 350D and they both have the power always on. I don't know about other Canon models.
Lejaune