CRLC663: general purpose output functionality

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CRLC663: general purpose output functionality

484 次查看
jof
Contributor I

Hi,

We would like to make use of the additional general purpose outputs of the CRLC663 chip in a future project to save pins on a MCU.  We would like to use the Pins OUT0 to OUT3 which are usually for the boundary scan.

I've not found any information about the hardware functionality of the pins in the datasheet. The critical informations would be if the pins are either "voltage out" (like a MCU) or "sink" (eg. open drain) and how much current can be used per pin and in common. I know that some devices can provide like 5mA per port, but for example only 15mA in sum of all pins.

We aim to use 4 LED's which have 1-3mA per LED.

Also it would be interesting how the outputs react when the device is in reset or sleep mode.

Thank you for any information.

标签 (1)
标记 (1)
0 项奖励
1 回复

376 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Jonathan ,

     OUT0~OUT7 all can be used as GPIO function. But these pins are multiplexed. You should do 2 steps for GPIO:

1. Enable them on corresponding bit in Register "PinEn"

pastedImage_1.png

pastedImage_3.png

[note]

     You can try to write 1 at bit0, and check if GPO function is enabled, otherwise write 0, please! I also didn't find detailed description on 1 or 0 for GPO function.

2. Output High Or Low  in Register "8.15.2 PinOut"

pastedImage_4.png

pastedImage_5.png

Write 1 on related bit, High level should be output, otherwise Low level.

In addtion, if your LED needs 1-3mA,  it is no problem to driver them diretly via GPO.  if higher current is needed, you can add a MOSFET to driver LEDs.

Have a nice day!

Best Regards,

Weidong Sun

0 项奖励