Jump to content

Playing with J5 .... Can I divide it???


Recommended Posts

Posted

Hi there!

I want to make a circuit as copact as possible for a clock and was hoping to use only a (custom miniature design) COre module.

I need 4 Douts and 4 Dins and was thinking of the J5 as DOUT or J5 as Din applincations...

Is there an easy way to Sub divide J5 into 4 ins and outs? or even better 2 Ains, 2 Dins, and 4 douts?

The ultimate plan whould be able to reconfigure these on the fly in the running application  ::) !!

Any thoughts?

A late merry Xmas and best wishes to all !!

Alex

Posted

Hi Alex,

it isn't so difficult to use some pins of J5 as digital input instead of output, the driver can be disabled by setting the appr. flag in the TRISA (port A pins of J5) and TRISE (port E pins of J5). Of course, once you did this, you have to enhance the application. I guess it's enough to include j5_din.inc and j5_dout.inc into one application, and to add all the hooks to the main.asm (search for the hooks in the main.asm files of both applications)

Mixed digital pin/analog pin configuration: this is also possible, but not that flexible then choosing input/output behaviour.

Search in the PIC18F452 datasheet for "ADCON1" (in the datasheet you will also find the informations about the TRISx registers)

Best Regards, Thorsten.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...