Akifumi Takahashi / PMRC16ch

Fork of PMRC4ch by Akifumi Takahashi

Embed: (wiki syntax)

« Back to documentation index

PMRC16ch Class Reference

PMRC16ch Class Reference

PMCR16 nyaan. More...

#include <PMRC16ch.h>

Public Member Functions

 PMRC16ch ()
 Constructor default.
 PMRC16ch (uint8_t arg_num_ch)
 Constructor with setting num of channels.
 PMRC16ch (uint8_t arg_num_ch, PinName arg_SCK, PinName arg_CLR, PinName arg_RCK, PinName arg_SER, PinName arg_OUT)
 Construxtor with full configuration.

Detailed Description

PMCR16 nyaan.

About PMRC16 class
  • A Program with which to control Photo MOS Relay Circuit for 16 channels Electric Stimulation.
  • Photo Couplers are controlled by Shift Resisters. So this lib serves shift resister's utility.
Image of Photo MOS Relay Array
  • 32 Photo MOS Relay IN
  • 16 channel OUT
 *   +--i      o----+----i      o--+
 *   |  [PMR01-1]   |    [PMR01-2] |
 *   |         (ch1(B)out)         |
 *   |                             |
 *   +--i      o----+----i      o--+
 *   |  [PMR02-1]   |    [PMR02-2] |
 *   |         (ch2(R)out)         |
 *   |                             |
 *   .              .              .
 *   .              .              .
 *   .              .              .
 *  Vpp                           GND
 *  
Info. Shit-Resister circuit board
  • nOE is connected to GND
 *  in
 *  ->[PMR01-1]->[PMR01-2]->[PMR02-1]->[PMR02-2]
 *  ->[PMR03-1]->[PMR03-2]->[PMR04-1]->[PMR04-2]
 *  ->[PMR05-1]->[PMR05-2]->[PMR06-1]->[PMR06-2]
 *  ->[PMR07-1]->[PMR07-2]->[PMR08-1]->[PMR08-2]
 *  ->[PMR09-1]->[PMR09-2]->[PMR10-1]->[PMR10-2]
 *  ->[PMR11-1]->[PMR11-2]->[PMR12-1]->[PMR12-2]
 *  ->[PMR13-1]->[PMR13-2]->[PMR14-1]->[PMR14-2]
 *  ->[PMR15-1]->[PMR15-2]->[PMR16-1]->[PMR16-2]
 *  ->out
 *  
Version:
1
  • 2016/dec/11-
  • program bersion for 8 channel circuit
16.1
  • 2018/jun/01-
  • 16 channel version
16.2
  • 2018/jun/28-
  • major change
16.x

Definition at line 67 of file PMRC16ch.h.


Constructor & Destructor Documentation

PMRC16ch (  )

Constructor default.

Definition at line 9 of file PMRC16ch.cpp.

PMRC16ch ( uint8_t  arg_num_ch )

Constructor with setting num of channels.

Parameters:
[in]arg_num_chnumber of channels to use

Definition at line 19 of file PMRC16ch.cpp.

PMRC16ch ( uint8_t  arg_num_ch,
PinName  arg_SCK,
PinName  arg_CLR,
PinName  arg_RCK,
PinName  arg_SER,
PinName  arg_OUT 
)

Construxtor with full configuration.

Parameters:
[in]arg_num_chnumber of channels to use
[in]arg_SCKpin of shift registor clock
[in]arg_CLRpin to clear the shift registor
[in]arg_RCKpin of storage registor (buffer) clock
[in]arg_SERpin to insert data
[in]arg_OUTpin to receive overflowed bit

Definition at line 33 of file PMRC16ch.cpp.