Design of Dual-Mode Stimulus Chip With Built-In High Voltage Generator for Biomedical Applications