1 Introduction

As one of the noticeable materials, nanostructured zinc oxide (ZnO) has been significantly investigated for its versatile physical and chemical properties. In the years since 2000, ZnO has been explored in the fields of electronics and optoelectronics. Different morphologies of ZnO nanostructures, such as nanowire arrays [1, 2], nanorods [3], nanobelts [4] and nanotubes [5], have been deposited using physical and chemical methods. Tube-shaped nanocrystals having larger surface area have attracted much attention according to other crystal structures, and this feature increases its potential applications in areas such as photocatalysis [6], solar cells [7] and chemical sensors [8]. Compared to the deposition techniques used to obtain ZnO nanotubes, low-temperature solution growth process comes forward because of its simplicity and ease of fabrication.

Doping process has been used to control the properties of semiconductors in most electronic devices. In particular, for ZnO, Mg can be considered as an important dopant due to the similarity of ionic radii of Zn and Mg. The widening of optical band gap of ZnO with Mg doping makes ZnO an appealing material for possible applications in solid-state lighting and heterostructures, and also they have been extensively studied for light-emitting diode [9], solar cells [10], sensors [11], field-effect transistors [12]. There are various methods related to production of Mg-doped ZnO such as magnetron sputtering [13], pulsed laser deposition [14], spray pyrolysis [15], sol–gel [16, 17] and chemical bath deposition (CBD) [18, 19]. Naturally, CBD method has a great advantage due to low-cost film formation, homogeneous and high-quality films. CBD is a simple method, which basically provides a nucleation and crystal growth on substrate inside the solution, resulting in the formation of metal oxide films. This method has been commonly used in synthesis of nanostructure films. Compared with traditional water bath heating, the main advantage of microwave synthesis is to heat rapidly the whole volume of the solution uniformly by controlling the temperature precisely [20] and to require very short reaction times, resulting in less energy consumption. Besides, microwave irradiation, which causes the heat created inside the material, has been widely used as a heating method in chemistry and material synthesis. Shape- and size-selective ZnO nanostructures having nanorod and nanotubes shapes can be fabricated by a microwave-assisted chemical bath deposition (MW-CBD) method that their diameters can be systematically varied over hundreds of nanometers. In the available literature, there are no studies about Mg-doped ZnO film synthesized by MW-CBD method, but there exist few studies made using CBD method. Among those reported, Chandramohan et al. [19] deposited the undoped and Mg-doped ZnO using a modified two-step chemical bath deposition technique and reported a shifting toward to lower wavelengths in the absorption edge with respect to Mg incorporation. They also reported an increase in grain size and an agglomeration with less voids on surface of the film. Polat et al. [21] deposited 2, 4 and 6 % Mg-doped ZnO films by CBD method onto ZnO-seeded FTO substrates. In their report, it is emphasized that optical band gap of ZnO nanorods having hexagonal crystal structure increased to 4 at% Mg doping and then decreased, and also as a result of solar cell measurements, an enhancement in efficiency was found with increasing Mg doping to 4 at%. Vijayaprasath et al. [18] used the CBD method to prepare Mg-doped ZnO film on the glass substrate. They reported a blue shift in the optical band gap with respect to Mg doping and that the flower-shaped structure of pure ZnO converted into spherical.

There exist so many studies on Mg-doped ZnO having nanorod structure obtained by CBD, but among these works it has so far not encountered with nanotubes structures. Most of previous studies have focused on nanotube films and powder forms of undoped ZnO. For example, Roza et al. [22] synthesized ZnO nanotubes onto FTO substrate by hydrothermal method. In this work, it was reported that hexamethylenetetramine (HMT) and precursor concentration could play an important role in the modification of the shape and density of ZnO nanostructure. Likewise, Wang et al. [23] deposited c axis-oriented ZnO nanorod (NR) arrays by CBD and reported that the variation of precursor concentration helps to control NRs’ mean diameter and the increase in the growing time leads to changes in ZnO nanotube structure.

In the scope of the application, there are some works about heterojunction diode based on Mg-doped ZnO deposited by various method. Some scientists such as Singh et al. [24] and Huang et al. [25] were devoted to the study of Mg-doped ZnO-based Schottky diode as heterojunction one is very limited. Soylu and Savas [26] investigated the electrical parameters of Mg-doped ZnO-based heterojunction diodes deposited by sol–gel spin coating method and reported that being controlled these parameters by doping amount. Tsuboi et al. [27] exhibited rectifying properties of p-Si/n-Mg0:05Zn0:95O heterojunction fabricated using a remote plasma-enhanced metalorganic chemical vapor deposition method.

In this work, Mg-doped ZnO films having nanotube-shaped surface morphology deposited by MW-CBD have been firstly reported and there is no significant study about its heterojunction diode application. Hence, the aim of this work is to investigate the effects of Mg concentration on the microstructure and optical properties and to make the electrical characterization of p-Si/n-ZnO:Mg heterojunction by using IV and CV measurements.

2 Experimental details

2.1 Chemicals

Zinc nitrate hexahydrate [Zn(NO3)2.6H2O, ZnNt], hexamethylenetetramine (C6H12N4, HMTA) and magnesium nitrate [Mg(NO3)2, MgNt] were used to prepare the solutions. All chemicals were purchased from Sigma-Aldrich. The solutions were prepared with deionized (DI) water purified with a Merck Millipore Direct Q3 (18.2 MΩ,). p-Si (Boron doped, <100>, 600–650 μm, 1–10 Ω-cm) substrates were purchased from Montco Silicon Technologies Inc.

2.2 Deposition of Mg-doped ZnO NR–NT films

Mg-doped ZnO NR–NT films were deposited on p-Si substrates using a MW-CBD method without any template. Firstly, p-Si substrates were cleaned ultrasonically in deionized water and acetone for 10 min and then were dried with N2 flow. Then, the substrates were cleaned in argon plasma cleaner (Harrick) for 10 min. Secondly, the solutions were prepared. For this, ZnNt and MgNt were used as precursor materials and doping source materials, respectively. To stirred ZnO precursor, solution with the concentration of 0.1 M of ZnNt was made by dissolving 100 ml of deionized water. The next process is to add the certain amount of HMTA catalyst to accelerate the reaction, and supply of OH as capping agent promotes anisotropic growth. Various amount of doping precursor MgNt corresponding to 0.0297 and 0.297 g (1 and 10 %, respectively) was added separately into the aqueous ZnNt + HMTA solutions. The mixture was stirred using a magnetic stirrer for 20 min in room temperature. The p-Si substrate was inserted in a beaker containing this solution. Finally, the first solution immersing the Si substrate was transferred into a CEM Mars 6 model microwave oven and irradiated at 600 W for 10 min. After MW treatment, the film was removed from the solution and rinsed with deionized water and dried under N2 flow and then the film dried at 60 °C for 1 h. The same procedure was made for other film.

2.3 Fabrication of n-ZnO/p-Si heterojunction diodes

In the heterojunction fabrication process, firstly, for top ohmic contact, the highly pure aluminum was thermally evaporated as 100 nm thickness in the pressure of 4.5 × 10−5 Torr. The contacts formed in the form of circular dots have 0.5 mm in diameter. For back contact, silver paint was used. The schematic structure of the heterojunction diode is shown in Fig. 1.

Fig. 1
figure 1

Schematic diagram of n-ZnO/p-Si heterojunction structure

2.4 Characterization of Mg-doped ZnO NR–NT films

Bruker D2 Phaser X-ray powder diffractometer equipped with CuK α radiation (λ = 1.5418 Å) was used to check the crystalline phase and crystallite orientation of Mg-doped ZnO NR–NT films. For surface morphology studies, Zeiss Ultraplus scanning electron microscope (SEM) was used. The diffuse reflectance measurements of the films were taken by Shimadzu 2450 spectrophotometer, including an integrating sphere attachment with using barium sulfonate (BaSO4) as reference. The current–voltage (IV) and capacitance–voltage (CV) measurements were taken inside Signatone probe station using a Keithley 4200 semiconductor characterization system.

3 Results and discussion

3.1 Reaction mechanism of Mg-doped ZnO

The main reaction mechanism has been elucidated through the identification of reaction products and intermediates. This mechanism most often referenced in the literature for ZnO nanorod deposition from ZnNt and HMTA. Understanding the growth mechanism of the Mg-doped ZnO NR–NT films, the process based on decomposition or hydrolysis of zinc and magnesium salts can be proposed for the formation of ZnO in aqueous solution. During the thermal decomposition in aqueous solution in the form of zinc magnesium hydroxide precursors, the Zn2+ and Mg2+ derive from ZnNt and MgNt, respectively, and also OH releases from HMTA. As a result, a nucleation of Mg-doped ZnO NR–NT starts to grow on the substrate. The main chemical reaction process can be described as

$${\text{C}}_{6} {\text{H}}_{12} {\text{N}}_{4} + 6{\text{H}}_{2} {\text{O}} \to 6{\text{HCHO}} + 4{\text{NH}}_{3}$$
(1)
$${\text{NH}}_{3} + {\text{H}}_{2} {\text{O}} \to {\text{NH}}_{4}^{ + } + {\text{OH}}^{ - }$$
(2)
$$\left( {{\text{Zn}}\left( {{\text{NO}}_{3} } \right)} \right)_{{1 - {\text{x}}}} \left( {{\text{Mg}}\left( {{\text{NO}}_{3} } \right)} \right)_{\text{x}} \to \left( {{\text{Zn}}_{{1 - {\text{x}}}} \cdot {\text{Mg}}_{\text{x}} } \right)^{ + 2} + 2{\text{NO}}_{3}^{ - }$$
(3)
$$\left( {{\text{Zn}}_{{1 - {\text{x}}}} {\text{Mg}}_{\text{x}} } \right)^{ + 2}\,+\,2{\text{OH}} \to \left( {{\text{Zn}}_{{1 - {\text{x}}}} \cdot {\text{Mg}}_{\text{x}} } \right)\left( {{\text{OH}}_{2} } \right)$$
(4)
$$\left( {{\text{Zn}}_{{1 - {\text{x}}}} {\text{Mg}}_{\text{x}} } \right)\left( {\text{OH}} \right)_{2} \to \left( {{\text{Mg}}:{\text{ZnO}}} \right) + {\text{H}}_{2} {\text{O}}$$
(5)

Here, HMTA decomposes to form formaldehyde and ammonia (Eq. 1). Ammonia reacts with water to produce OH (Eq. 2). The reaction between ZnNt, various amount of doping precursor MgNt and OH as a result forms Mg-doped ZnO by MW irradiation (Eqs. 3, 4, 5). With this reaction process, if the p-Si substrate is immersed in the solution, the attractive forces occurring between ions in the solution and the substrate surface cause an adsorption of zinc complex ions on the substrate. Wherein, the mentioned forces may be cohesive, or Van der Waals, or chemical attractive.

3.2 Morphological analysis of the ZnO NR and ZnO NT films

Field emission scanning electron microscopy (FESEM) has been used to investigate the surface morphology of the films. FESEM images in Fig. 2 show the effect of incorporation of Mg in the ZnO lattice on the surface morphology. Hexagonal rods cover all the surfaces as seen from the top views at different magnifications. It is found that ZnO hexagonal nanorods turn into hexagonal nanotubes when the Mg doping ratio is increased from 1 to 10 %. While in Fig. 2a, b ZnO hexagonal rods are vertically well aligned on the surface, this alignment is slightly lost in Fig. 2c, d, resulting in a decrease in density with contributions of hollow cores inside hexagonal nanorods. Thus, it is clearly seen the morphological transformation of nanorods to nanotubes with increase in doping. It is also observed an increase in rod diameter with increasing Mg doping. One and 10 % Mg-doped ZnO films are named ZnO NR and ZnO NT, respectively.

Fig. 2
figure 2

FESEM images of 1 % Mg-doped ZnO-NR and 10 % Mg-doped ZnO-NT films at 25 k (a, c) and 100 k (b, d) magnifications

3.3 Growth mechanism of the ZnO NR and ZnO NT

The mechanism of interaction of HMTA with ZnNt, and MgNt in microwave oven cell is shown in Fig. 3. The growth mechanism of ZnO nanorods and nanotubes is shown in Fig. 2a, b. The structure of ZnO was doping controlled for 1 % Mg doping and 10 % Mg doping. For 1 % Mg doping, ZnO nanocrystals are grown in nanorods shape. After 10 % Mg doping, ZnO is grown drastically as nanotube shape ZnO nanocrystals. Addition of Mg atoms changes the growth rate preference along different crystal axes of ZnO. Therefore, ZnO is transformed from the nanorods to nanotubes in crystal morphology. This transformation with Mg doping suggests that the increase in Mg content is an important factor that causes a change from nanorods to nanotubes in the ZnO structural morphology.

Fig. 3
figure 3

Scheme of growth mechanism for the ZnO NR (a) and ZnO NT (b)

3.4 Structural analysis of the ZnO NR and ZnO NT films

The crystal structure is defined simply as the ordered arrangement of atoms or molecules in a crystalline material, and also it plays an important role in determining the physical properties of any materials. Herewith, to know the effect of Mg doping on the crystal structure of ZnO, X-ray powder diffraction (XRD) analysis was carried out and as a result of the measurements a significant effect was observed as shown in Fig. 4. Figure 4 shows the XRD patterns, presenting the formation of the hexagonal wurtzite ZnO crystal structure (JCPDS reference 36-1451) having the polycrystalline nature. Diffraction peaks belong to (100), (002), (101), (102) and (110) planes are also shown in Fig. 4, and no other impurity phase such as Mg, MgO is identified, which also means that Mg ion successfully occupies the lattice site rather than interstitial ones. Also peaks at 33.1° and 54.6° belong to Si substrate. While, in the first pattern, (002) reflection peak intensity is quite high, the intensities of the other peaks have changed significantly with incorporation of Mg into the ZnO lattice at a ratio of 10 %. This situation can be explained by the reduction in the concentration of the zinc interstitials for charge compensation, which resulted in suppressed ZnO grain growth and deteriorated crystallinity [28]

Fig. 4
figure 4

XRD spectra of ZnO-NR and ZnO-NT films and the variation of TC(hkl) values with Mg content inset of figure

Compared with the relative intensities of the peaks obtained form XRD patterns with their standard values, the information about preferential growth can be obtained. The texture coefficient TC(hkl) describes the texture of the particular plane, and deviation from unity of this expression indicates the preferential growth orientation. The TC(hkl) values for five different orientations of the samples were calculated using the following relation [29] and given in inset of Fig. 3,

$$TC(hkl) = \frac{{I(hkl)/I_{o} (hkl)}}{{N^{ - 1} \sum\limits_{n} {I(hkl)/I_{o} (hkl)} }}$$
(6)

where I(hkl) is the measured relative intensity of a plane (hkl), I o (hkl) is the standard intensity of the plane (hkl) taken from the JCPDS data, N is the number of reflection, and n is the number of diffraction peaks. Random orientation of all the crystallites means that texture coefficient is equal to 1. Actually, an increase in the amount of deviation from unity in the texture coefficient indicates a higher degree of preferred orientation along a particular plane as compared to the bulk. The values of texture coefficients calculated from the diffraction peaks are presented in inset of Fig. 4. Comparison of the texture coefficients of different planes reveals that the ZnO NR film is highly textured along the (002) plane having the highest packing fraction of planar density in the wurtzite structure. Decrease in texture coefficient of (002) plane with increasing Mg content is a sign of deterioration of the crystal structure.

3.5 Optical band gap of the ZnO NR and ZnO NT films

A transmittance spectrum is the most appropriate and simple method used to determine the optical band gap energy, but the optical transmission measurements may not be possible in case of opaque or powder sample. Therefore, for studying the optical band gap energy of such samples, the reflectance (R) spectrum can also be used. The determination of the band gap via the diffuse reflectance measurements of an opaque substrate is a standard technique. To determine the optical band gap of ZnO NR and ZnO NT films deposited on the p-Si wafer, the diffuse reflectance spectra have been used. As shown in inset of Fig. 5a, b, the average reflectance is found to be 9.37 and 8.15 % (at 400–800 nm) for the ZnO NR and ZnO NT films, respectively. The reflectance values converted to absorbance by application of the Kubelka–Munk function were used to determine the value of optical band gap of the films. In general, the Kubelka–Munk theory, by analyzing the obtained diffuse reflectance spectra, is used to determine the concentration of an absorbing species [30]:

$$F\left( R \right) = \frac{{\left( {1 - R} \right)^{2} }}{2R}$$
(7)

where F(R) is Kubelka–Munk function corresponding to the absorbance and converting it to the linear absorption coefficient is expressed by the following relation

$$a = \frac{F\left( R \right)}{t} = \frac{\text{Absorbance}}{t}$$
(8)

where t is the thickness of the films.

Fig. 5
figure 5

a Kubelka–Munk graph and reflectance spectra of ZnO-NR film the inset of figure b Kubelka–Munk graph and reflectance spectra of ZnO-NT film the inset of figure

Equation (7) can be rewritten as

$$\left( {\frac{F\left( R \right)h\nu }{t}} \right) = A\left( {h\nu - E_{g} } \right)^{n}$$
(9)

The optical band gap values for ZnO NR and ZnO NT films have been obtained by extrapolating the linear portion of the plots of [F(R)hν/t]2 versus the photon energy to  = 0 as shown in Fig. 5a, b. The values of the optical band gap for ZnO NR and ZnO NT films are found to be 3.14 and 3.22 eV, respectively. Although the obtained results are consistent with many of the previous studies [3134], they are lower than the known band gap energy of bulk ZnO (3.37 eV). This decrease may be attributed to some defects which exist within the ZnO lattice such as ionized Mg impurity atoms and native defects [35]. The observed increase in optical band gap with high Mg doping can be explained by the Burstein–Moss effect, and different research groups reported the same expansion in the band gap due to the increase in Mg content [36, 37].

3.6 Current–voltage characteristics of the n-ZnO NR/p-Si and n-ZnO NT/p-Si heterojunction diodes

The electrical characterizations of the fabricated nanostructure n-ZnO/p-Si heterojunction diodes were carried out at room temperature in air under dark conditions. Figure 5 shows the experimental semilog IV characteristics of n-ZnO NR/p-Si and n-ZnO NT/p-Si heterojunction diodes having a rectification property. The following relation [38] can be used to determine the diode parameters using the IV characteristic.

$$I = AA^{*} T^{2} \exp \left( { - \frac{{q\emptyset_{b} }}{kT}} \right)\left[ {\exp \left( {\frac{qV}{nkT}} \right) - 1} \right]$$
(10)

where V is the applied bias voltage, q is the charge, n is the ideality factor, k is the Boltzmann constant, and T is the absolute temperature in Kelvin. The reverse saturation current I s which is determined from the straight-line intercept of ln IV plot at zero-bias is given by,

$$I_{s} = AA^{*} T^{2} \exp \left( { - \frac{{q\emptyset_{b} }}{kT}} \right)$$
(11)

where A is the rectifier contact area, A* is the effective Richardson constant (32 A/cm2 K2 for p-type Si), and \(\emptyset\) b is the barrier height at zero-bias easily obtained from Eq. (11). By using Eq. 11, the ideality factor n can be calculated from the slope of the linear region of the forward bias ln IV plot and can be expressed as,

$$n = \frac{q}{kT}\left( {\frac{{{\text{d}}V}}{{{\text{d}}\left( {\ln I} \right)}}} \right)$$
(12)

Also, if Eq. 12 is reorganized according to the barrier height, it can be written by

$$\phi_{b} = \frac{kT}{q}\ln \left( {\frac{{AA^{*} T^{2} }}{{I_{s} }}} \right)$$
(13)

The calculated values of n and ϕ b for n-ZnO NR/p-Si and n-ZnO NT/p-Si heterojunction diodes are shown in Fig. 6. Both ideality factors calculated as 3.00 and 2.66 from the slope of the linear region of Fig. 6 for two different Mg doping are larger than unity. Actually that being larger than unity of these values may be acceptable for a heterojunction and generally the presence of surface states in the junction is the reason of this deviation from ideal behavior. Also, the possible oxide layer on the p-Si and the series resistance effect significantly affect the ideality factor of the diode. For obtaining barrier height, Eq. (7) was used and ϕ b values were calculated as 0.77 and 0.80 eV. Considering that the difference between the work functions of Si and ZnO is 0.72 eV, the calculated values in this work are within acceptable limits. When both n and ϕ b values are compared with the literature, it can be seen that these parameters are better than the values obtained in earlier published works which is related to ZnO-based heterojunction [3942]. As above mentioned that the ideality factor is higher than unity probably originates from the presence of an interfacial layer and traps at the interface of heterojunction. The curves of log I versus log V (see Fig. 7a, b) were plotted to evaluate the conduction mechanism controlling the heterojunction diode behavior. Then, these plots were analyzed according to power law, IαV m relation. Both Fig. 6a, b contain three different linear regions, indicating different conduction mechanisms, and the slopes of these regions were calculated to detect m values. These different slopes can exhibit the charge transport mechanisms being changed by the presence of traps at the interface. For both heterojunctions, all the slopes belong to three regions are approximately same and in region I (0.05 ≤ V ≤ 0.2), the calculated slopes (m) are 2.19 and 2.34, respectively. These slopes suggest that the conduction mechanism in this voltage region is controlled by the space charge-limited current (SCLC) mechanism. Because the expected value of m is 2 in the region-dominated SCLC mechanism [43, 44]. The slopes of 3.57 and 3.73 observed in region II (0.2 ≤ V ≤ 1) mean that the conduction mechanism is controlled by trap charge-limited current (TCLC). In this mechanism, the energy distribution of trap levels within the forbidden band causes the slope to be greater than 2 [45]. Also, at the voltages \(\left( {1 \le V \le 7} \right)\) (region III), the value of m was determined as 1.48 and 1.32. These slopes values mean that the current approaches the space-limited region due to the filled all traps [44, 46].

Fig. 6
figure 6

Forward and reverse log IV plots of n-ZnO-NR/p-Si (a) and n-ZnO-NT/p-Si (b), respectively

Fig. 7
figure 7

log I–log V plot of n-ZnO-NR/p-Si (a) and n-ZnO-NT/p-Si (b), respectively

Cheung’s method can be used to analyze the series resistance effect playing an important role on the diode parameters [47]. In this method, the forward bias IV characteristics of a diode deviating from linearity due to series resistance effect are expressed as:

$$I = I_{s} \exp \left[ {\frac{{q\left( {V - {\text{IR}}_{s} } \right)}}{nkT}} \right]$$
(14)

where the IR s is the voltage drop across the series resistance of nanorod heterojunction diode. The values of series resistance, ideality factor and barrier height are calculated by the following equation:

$$\frac{{{\text{d}}V}}{{{\text{d}}\left( {\ln I} \right)}} = {\text{IR}}_{s} + n\left( {\frac{kT}{q}} \right)$$
(15)
$$H\left( I \right) = V - n\left( {\frac{kT}{q}} \right)\ln \left( {\frac{I}{{AA^{*} T^{2} }}} \right)$$
(16)

where

$$H\left( I \right) = {\text{IR}}_{s} + n\emptyset_{b}$$
(17)

The slope and the y axis intercept of the dV/d ln(I) versus I plot which is shown in Fig. 8 are used to calculate R s and n. These values are obtained as 168 kΩ and 3.36 for n-ZnO-NR/p-Si diode, 301 kΩ and 2.84 for n-ZnO-NT/p-Si diode, respectively. The intercept of H(I) versus I plot shown in Fig. 8 was used to determine \(\phi_{b}\) values and calculated as 0.81 and 0.98 eV, respectively. This n value is slightly different obtaining from the forward bias In IV plot, resulting from the presence of series resistance and interface states [48].

Fig. 8
figure 8

dV/d ln(I)–I and H(I)–I plots of n-ZnO-NR/p-Si (a) and n-ZnO-NT/p-Si (b), respectively

In order to identify the effect of series resistance on IV characteristics, alternative method is Norde method. The following function has been defined in the modified Norde’s method [49]:

$$F\left( V \right) = \frac{{V_{0} }}{\gamma } - \frac{kT}{q}\ln \left( {\frac{I\left( V \right)}{{A^{*} AT^{2} }}} \right)$$
(18)

where γ is the integer (dimensionless) greater than n and I(V) is the current obtained from the IV characteristic. Figure 9 shows the plot of F(V) versus voltage. The ∅ b and the R s for the nanorod heterojunction diodes are calculated by the following equation:

$$\phi_{b} = F\left( {V_{0} } \right) + \frac{{V_{0} }}{\gamma } - \frac{kT}{q}$$
(19)
$$R_{s} = \frac{{kT\left( {\gamma - n} \right)}}{{qI_{0} }}$$
(20)

where F(V 0) is the minimum point of F(V). By using the Norde Method, the barrier height and series resistance values of n-ZnO-NR/p-Si and n-ZnO-NT/p-Si were calculated to be 0.80 and 0.84 eV and 216 and 1200 kΩ, respectively. The reason of difference between series resistance values obtained from both Cheung and Norde’s methods may be due to the fact that Cheung’s model is applicable in high-voltage region, while Norde’s model is applied to the full-voltage range [50]. We analyzed the effects of high electric fields on the IV characteristics of the diodes. It is seen that IV characteristics of the diodes are affected from low and high electric fields. Thus, it is evaluated that the Norde’s method is suitable for the system.

Fig. 9
figure 9

F(V)–V plots of n-ZnO-NR/p-Si (a) and n-ZnO-NT/p-Si (b), respectively

3.7 Capacitance–voltage of n-ZnO-NR/p-Si and n-ZnO-NT/p-Si heterojunction diode

In the investigation of capacitance–voltage (CV) characteristics of n-ZnO-NR/p-Si and n-ZnO-NT/p-Si heterojunctions, CV and 1/C 2V plots, which were taken at 10 kHz, were used are and shown in Fig. 10a, b. As shown in these figures, the capacitance value increases with the applied bias voltage and then reaches a constant value. The saturation region corresponds to oxide capacitance, C ox, between ZnO and p-Silicon. The C ox value is increased with Mg doping. A linear behavior of CV curves was observed from 0.5 to 2 V due to the linear change in the depletion region of the diodes. The following relation can be used to analyze the CV characteristics of the obtained heterojunction diodes [38]

$$\frac{1}{{C^{2} }} = \frac{{2\left( {V_{bi} + V} \right)}}{{A^{2} \varepsilon_{s} qN_{a} }}$$
(21)

where V bi is the built-in potential, ε s is the dielectric constant of semiconductor (ε s  = 11.8), and N a is the acceptor concentration. For the determination of barrier height of the diode from the CV measurements, the following relation is used,

$$\phi_{{b\left( {C - V} \right)}} = V_{bi} /n + \frac{kT}{q}\ln \left( {\frac{{N_{v} }}{{N_{a} }}} \right)$$
(22)

where N v is density of states in the valence band (N v  = 1.82 × 1019 cm−3). To calculate the barrier height values, the V bi and N a values obtained from C −2V plot were used. The obtained values for V bi and ϕ b are shown in Fig. 10. The ϕ b values obtained from CV are smaller than n values obtained from IV, but it is closer to the difference between the work functions of Si and ZnO. This difference between barrier heights calculated with two different methods may result from the inhomogeneities such as non-uniformity of the interfacial layer thickness and distributions of the interfacial charges [38, 51].

Fig. 10
figure 10

CV and C −2V plots of n-ZnO-NR/p-Si (a) and n-ZnO-NT/p-Si (b) for 10 kHz, respectively

4 Conclusions

Magnesium-doped zinc oxide nanorod–nanotube films were synthesized by microwave-assisted chemical bath deposition. SEM results indicate that Mg-doped ZnO is formed from the hexagonal nanorods. The optical band gap values of Mg-doped ZnO films are controlled from 3.14 to 3.22 eV with Mg doping. The rectifying properties of the diodes are changed with Mg incorporation. The diodes exhibited a nonlinear IV behavior with the calculated electronic parameters.