Closed loop neuromodulation, where the stimulation is controlled autonomously based on physiological events, has been more effective than open loop techniques. In the few existing closed loop implementations which have a feedback, indirect non-neurophysiological biomarkers have been typically used (e.g. heart rate, stomach distension). Although these biomarkers enable automatic initiation of neural stimulation, they do not enable intelligent control of stimulation dosage. In this paper, we present a novel closed loop neuromodulation System-on-Chip (SoC) based on a dual signal mode that is detecting both electrical and chemical signatures of neural activity. We use vagus nerve stimulation (VNS) as a design case here. Vagal chemical (pH) signal is detected and used for initiating VNS and vagal compound action potential (CAP) signals are used to determine the stimulation dosage and pattern. Although we used the paradigm of appetite control and neurometabolic therapies for developing the algorithms for neurostimulation control, the SoC described here can be utilised for other types of closed loop neuromodulation implants.